chef

https://github.com/opscode/chef

Ruby

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

Chef::Client#load_required_recipe

Adds a required recipe as specified by the Chef Server

TODO: @rest doesn't appear to be used anywhere outside
of client.register except for here. If it's common practice
to create your own rest client, perhaps we should do that
here but it seems more appropriate to reuse one that we
know is already created. for ease of testing, we'll pass
the existing rest client in as a parameter

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/client.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Client-load_required_recipe-for-pr


# Commit to git

git add lib/chef/client.rbgit commit -m "better docs for Chef::Client#load_required_recipe"


# 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--Client-load_required_recipe-for-pr

hub pull-request


# Celebrate!