Method: Puppet::Provider::ParsedFile.prefetch

Defined in:
lib/puppet/provider/parsedfile.rb

.prefetch(resources = nil) ⇒ Object

Retrieve all of the data from disk. There are three ways to know which files to retrieve: We might have a list of file objects already set up, there might be instances of our associated resource and they will have a path parameter set, and we will have a default path set. We need to turn those three locations into a list of files, prefetch each one, and make sure they’re associated with each appropriate resource instance.



224
225
226
227
228
229
# File 'lib/puppet/provider/parsedfile.rb', line 224

def self.prefetch(resources = nil)
  # Reset the record list.
  @records = prefetch_all_targets(resources)

  match_providers_with_resources(resources)
end