Method: Chef::Provider::CookbookFile#resource_cookbook

Defined in:
lib/chef/provider/cookbook_file.rb

#resource_cookbookObject

Determine the cookbook to get the file from. If new resource sets an explicit cookbook, use it, otherwise fall back to the implicit cookbook i.e., the cookbook the resource was declared in.



71
72
73
# File 'lib/chef/provider/cookbook_file.rb', line 71

def resource_cookbook
  @new_resource.cookbook || @new_resource.cookbook_name
end