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#register

Determine our private key and set up the connection to the Chef server.

Skips registration and fires the `skipping_registration` event if
Chef::Config.client_key is unspecified or already exists.

If Chef::Config.client_key does not exist, we register the client with the
Chef server and fire the registration_start and registration_completed events.

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-register-for-pr


# Commit to git

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


# 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-register-for-pr

hub pull-request


# Celebrate!