class ChefCLI::Policyfile::CachedCookbook
def refresh!
the data generally should have no affect. If the cookbook has been
We do not expect the cookbook to get mutated out-of-band, so refreshing
def refresh! # This behavior fits better with the intent of the #validate! method, # but we cannot check for modifications there because the user may be # setting custom identifiers. if @identifier && identifiers.content_identifier != @identifier message = "Cached cookbook `#{name}' (#{version}) has been modified since the lockfile was generated. " + "Cached cookbooks cannot be modified. (full path: `#{cookbook_path}')" raise CachedCookbookModified, message end end