chef

https://github.com/opscode/chef

Ruby

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

Chef::Knife::Bootstrap::ClientBuilder#sanity_check

Check for the existence of a node and/or client already on the server.  If the node
already exists, we must delete it in order to proceed so that we can create a new node
object with the permissions of the new client.  There is a use case for creating a new
client and wiring it up to a precreated node object, but we do currently support that.

We prompt the user about what to do and will fail hard if we do not get confirmation to
delete any prior node/client objects.

Source | Google | Stack overflow

Edit

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

cd chef

open knife/lib/chef/knife/bootstrap/client_builder.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Knife--Bootstrap--ClientBuilder-sanity_check-for-pr


# Commit to git

git add knife/lib/chef/knife/bootstrap/client_builder.rbgit commit -m "better docs for Chef::Knife::Bootstrap::ClientBuilder#sanity_check"


# 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--Knife--Bootstrap--ClientBuilder-sanity_check-for-pr

hub pull-request


# Celebrate!