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

Version Path
corl-0.4.29 lib/core/mod/facter_loader.rb
corl-0.4.28 lib/core/mod/facter_loader.rb
corl-0.4.27 lib/core/mod/facter_loader.rb
corl-0.4.26 lib/core/mod/facter_loader.rb
corl-0.4.25 lib/core/mod/facter_loader.rb
corl-0.4.24 lib/core/mod/facter_loader.rb
corl-0.4.23 lib/core/mod/facter_loader.rb
corl-0.4.22 lib/core/mod/facter_loader.rb
corl-0.4.21 lib/core/mod/facter_loader.rb
corl-0.4.20 lib/core/mod/facter_loader.rb
corl-0.4.19 lib/core/mod/facter_loader.rb
corl-0.4.18 lib/core/mod/facter_loader.rb
corl-0.4.17 lib/core/mod/facter_loader.rb