# File lib/puppet/configurer/downloader.rb, line 8 8: def self.timeout 9: timeout = Puppet[:configtimeout] 10: case timeout 11: when String 12: if timeout =~ /^\d+$/ 13: timeout = Integer(timeout) 14: else 15: raise ArgumentError, "Configuration timeout must be an integer" 16: end 17: when Integer # nothing 18: else 19: raise ArgumentError, "Configuration timeout must be an integer" 20: end 21: 22: return timeout 23: end