# File lib/facter/util/loader.rb, line 11 11: def load(fact) 12: # Now load from the search path 13: shortname = fact.to_s.downcase 14: load_env(shortname) 15: 16: filename = shortname + ".rb" 17: search_path.each do |dir| 18: # Load individual files 19: file = File.join(dir, filename) 20: 21: load_file(file) if FileTest.exist?(file) 22: 23: # And load any directories matching the name 24: factdir = File.join(dir, shortname) 25: load_dir(factdir) if FileTest.directory?(factdir) 26: end 27: end