# File lib/puppet/util/autoload.rb, line 106 106: def loadall 107: # Load every instance of everything we can find. 108: searchpath.each do |dir| 109: Dir.glob("#{dir}/*.rb").each do |file| 110: name = File.basename(file).sub(".rb", '').intern 111: next if loaded?(name) 112: begin 113: Kernel.require file 114: loaded(name, file) 115: rescue SystemExit,NoMemoryError 116: raise 117: rescue Exception => detail 118: puts detail.backtrace if Puppet[:trace] 119: raise Puppet::Error, "Could not autoload #{file}: #{detail}" 120: end 121: end 122: end 123: end