Sha256: 9b75db27750e8ec6f2a998b251587526f61be6ba69a3eb5a5d1d6595fda4401c
Contents?: true
Size: 351 Bytes
Versions: 13
Compression:
Stored size: 351 Bytes
Contents
module Facter module Util class Loader def load_dir(dir) # TODO: If this works submit a patch to Facter project return if dir =~ /\/\.+$/ or dir =~ /\/util$/ or dir =~ /\/core$/ or dir =~ /\/lib$/ Dir.entries(dir).find_all { |f| f =~ /\.rb$/ }.sort.each do |file| load_file(File.join(dir, file)) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems