class Chef::Cookbook::ManifestV2
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/chef/cookbook/manifest_v2.rb, line 26 def self.from_hash(hash) Chef::Log.trace "processing manifest: #{hash}" Mash.new hash end
to_hash(manifest)
click to toggle source
# File lib/chef/cookbook/manifest_v2.rb, line 31 def self.to_hash(manifest) result = manifest.manifest.dup result["all_files"].map! { |file| file.delete("full_path"); file } result["frozen?"] = manifest.frozen_version? result["chef_type"] = "cookbook_version" result.to_hash end