class ChefSpec::Renderer
def content_from_cookbook_file(chef_run, cookbook_file)
-
cookbook_file(Chef::Provider::CookbookFile) -- -
chef_run(Chef::RunContext) --
def content_from_cookbook_file(chef_run, cookbook_file) cookbook_name = cookbook_file.cookbook || cookbook_file.cookbook_name cookbook = cookbook_collection(chef_run.node)[cookbook_name] File.read(cookbook.preferred_filename_on_disk_location(chef_run.node, :files, cookbook_file.source)) end