Method: Puppet::Configurer::Downloader.timeout
- Defined in:
- lib/vendor/puppet/configurer/downloader.rb
.timeout ⇒ Object
Determine the timeout value to use.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vendor/puppet/configurer/downloader.rb', line 8 def self.timeout timeout = Puppet[:configtimeout] case timeout when String if timeout =~ /^\d+$/ timeout = Integer(timeout) else raise ArgumentError, "Configuration timeout must be an integer" end when Integer # nothing else raise ArgumentError, "Configuration timeout must be an integer" end timeout end |