chef

https://github.com/opscode/chef

Ruby

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

Chef::CookbookUploader#initialize

Creates a new CookbookUploader.
===Arguments:
* cookbooks::: A Chef::CookbookVersion or array of them describing the
               cookbook(s) to be uploaded
* path::: A String or Array of Strings representing the base paths to the
          cookbook repositories.
* opts::: (optional) An options Hash
===Options:
* :force  indicates that the uploader should set the force option when
          uploading the cookbook. This allows frozen CookbookVersion
          documents on the server to be overwritten (otherwise a 409 is
          returned by the server)
* :rest   A Chef::ServerAPI object that you have configured the way you like it.
          If you don't provide this, one will be created using the values
          in Chef::Config.
* :concurrency   An integer that decided how many threads will be used to
          perform concurrent uploads

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/cookbook_uploader.rb

Contribute

# Make a new branch

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


# Commit to git

git add lib/chef/cookbook_uploader.rbgit commit -m "better docs for Chef::CookbookUploader#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--CookbookUploader-initialize-for-pr

hub pull-request


# Celebrate!