summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_collection/lookup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/file_collection/lookup.rb')
-rw-r--r--lib/puppet/file_collection/lookup.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/file_collection/lookup.rb b/lib/puppet/file_collection/lookup.rb
index 8f69c6681..ddb0c8431 100644
--- a/lib/puppet/file_collection/lookup.rb
+++ b/lib/puppet/file_collection/lookup.rb
@@ -5,6 +5,10 @@ require 'puppet/file_collection'
module Puppet::FileCollection::Lookup
attr_accessor :line, :file_index
+ def file_collection
+ Puppet::FileCollection.collection
+ end
+
def file=(path)
@file_index = file_collection.index(path)
end