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.for_config

A small factory method.  Eventually, this is the only place
where SubcommandLoader should know about its subclasses, but
to maintain backwards compatibility many of the instance
methods in this base class contain default implementations
of the functions sub classes should otherwise provide
or directly instantiate the appropriate subclass

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


# Commit to git

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


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

hub pull-request


# Celebrate!