# File lib/puppet/indirector/facts/facter.rb, line 39 39: def self.timeout 40: timeout = Puppet[:configtimeout] 41: case timeout 42: when String 43: if timeout =~ /^\d+$/ 44: timeout = Integer(timeout) 45: else 46: raise ArgumentError, "Configuration timeout must be an integer" 47: end 48: when Integer # nothing 49: else 50: raise ArgumentError, "Configuration timeout must be an integer" 51: end 52: 53: return timeout 54: end