class Chef::Cookbook::ManifestV2

Public Class Methods

from_hash(hash) click to toggle source
# File lib/chef/cookbook/manifest_v2.rb, line 27
def from_hash(hash)
  Chef::Log.trace "processing manifest: #{hash}"
  Mash.new hash
end
to_h(manifest) click to toggle source
# File lib/chef/cookbook/manifest_v2.rb, line 32
def to_h(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
Also aliased as: to_hash
to_hash(manifest)
Alias for: to_h