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