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::IndexRebuild#parse_api_info

Chef 11 (and above) servers return various pieces of
information about the server in an +x-ops-api-info+ header.
This is a +;+ delimited string of key / value pairs, separated
by +=+.

Given a Net::HTTPResponse object, this method extracts this
information (if present), and returns it as a hash.  If no
such header is found, an empty hash is returned.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/knife/index_rebuild.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Knife--IndexRebuild-parse_api_info-for-pr


# Commit to git

git add lib/chef/knife/index_rebuild.rbgit commit -m "better docs for Chef::Knife::IndexRebuild#parse_api_info"


# 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--IndexRebuild-parse_api_info-for-pr

hub pull-request


# Celebrate!