diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-15 14:30:29 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-15 14:30:29 -0500 |
commit | 1ba2bed578debd251d2b9514039082eaa3f136df (patch) | |
tree | 907098a846dd7215d59ccfec2d470318bb619fa8 /lib/facter.rb | |
parent | be0a8031fbf8e4a2d608ab600c37c1b01dec16a1 (diff) | |
download | facter-1ba2bed578debd251d2b9514039082eaa3f136df.tar.gz facter-1ba2bed578debd251d2b9514039082eaa3f136df.tar.xz facter-1ba2bed578debd251d2b9514039082eaa3f136df.zip |
Moving all of the support classes to util/.
This makes it easier for our loader to distinguish between
code that Facter uses and new facts.
Diffstat (limited to 'lib/facter.rb')
-rw-r--r-- | lib/facter.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index 913060e..0f00f7d 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -18,8 +18,11 @@ #-- module Facter - require 'facter/fact' - require 'facter/collection' + # This is just so the other classes have the constant. + module Util; end + + require 'facter/util/fact' + require 'facter/util/collection' include Comparable include Enumerable @@ -47,7 +50,7 @@ module Facter def self.collection unless defined?(@collection) and @collection - @collection = Facter::Collection.new + @collection = Facter::Util::Collection.new end @collection end |