chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::CookbookManifest#initialize

Create a new CookbookManifest object for the given `cookbook_version`.
You can subsequently call #to_hash to get a Hash representation of the
cookbook_version in the "manifest" format, or #to_json to get a JSON
representation of the cookbook_version.

The inferface for this behavior is expected to change as we implement new
manifest formats. The entire class should be considered a private API for
now.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/cookbook_manifest.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--CookbookManifest-initialize-for-pr


# Commit to git

git add lib/chef/cookbook_manifest.rbgit commit -m "better docs for Chef::CookbookManifest#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--CookbookManifest-initialize-for-pr

hub pull-request


# Celebrate!