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::SubcommandLoader#find_longest_key

Utility function for finding an element in a hash given an array
of words and a separator.  We find the the longest key in the
hash composed of the given words joined by the separator.

Source | Google | Stack overflow

Edit

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

cd chef

open knife/lib/chef/knife/core/subcommand_loader.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Knife--SubcommandLoader-find_longest_key-for-pr


# Commit to git

git add knife/lib/chef/knife/core/subcommand_loader.rbgit commit -m "better docs for Chef::Knife::SubcommandLoader#find_longest_key"


# 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--SubcommandLoader-find_longest_key-for-pr

hub pull-request


# Celebrate!