summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_collection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/file_collection.rb')
-rw-r--r--lib/puppet/file_collection.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/file_collection.rb b/lib/puppet/file_collection.rb
index 451b496a1..69f59ffdf 100644
--- a/lib/puppet/file_collection.rb
+++ b/lib/puppet/file_collection.rb
@@ -1,6 +1,12 @@
# A simple way to turn file names into singletons,
# so we don't have tons of copies of each file path around.
class Puppet::FileCollection
+ require 'puppet/file_collection/lookup'
+
+ def self.collection
+ @collection
+ end
+
def initialize
@paths = []
end
@@ -17,4 +23,6 @@ class Puppet::FileCollection
def path(index)
@paths[index]
end
+
+ @collection = self.new
end