This class handles fetching of cookbook files based on specificity.
Factory method that creates the appropriate kind of Cookbook::FileVendor to serve the contents of the manifest
# File lib/chef/cookbook/file_vendor.rb, line 33 def self.create_from_manifest(manifest) raise "Must call Chef::Cookbook::FileVendor.on_create before calling create_from_manifest factory" unless defined?(@instance_creator) @instance_creator.call(manifest) end
Gets the on-disk location for the given cookbook file.
Subclasses are responsible for determining exactly how the files are obtained and where they are stored.
# File lib/chef/cookbook/file_vendor.rb, line 42 def get_filename(filename) raise NotImplemented, "Subclasses must implement this method" end
Generated with the Darkfish Rdoc Generator 2.