From 1ba2bed578debd251d2b9514039082eaa3f136df Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 15 May 2008 14:30:29 -0500 Subject: 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. --- lib/facter.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/facter.rb') 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 -- cgit