# File lib/chef/cookbook_version.rb, line 317 def self.sync_cookbooks(cookbook_hash) Chef::Log.info("Loading cookbooks [#{cookbook_hash.keys.sort.join(', ')}]") Chef::Log.debug("Cookbooks detail: #{cookbook_hash.inspect}") clear_obsoleted_cookbooks(cookbook_hash) # Synchronize each of the node's cookbooks, and add to the # valid_cache_entries hash. cookbook_hash.values.each do |cookbook| sync_cookbook_file_cache(cookbook) end true end