chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::PolicyBuilder::ExpandNodeObject#setup_chef_class
This method injects the run_context and into the Chef class. NOTE: This is duplicated with the Policyfile implementation. If it gets any more complicated, it needs to be moved elsewhere.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/policy_builder/expand_node_object.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--PolicyBuilder--ExpandNodeObject-setup_chef_class-for-pr
# Commit to gitgit add lib/chef/policy_builder/expand_node_object.rbgit commit -m "better docs for Chef::PolicyBuilder::ExpandNodeObject#setup_chef_class"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--PolicyBuilder--ExpandNodeObject-setup_chef_class-for-pr
hub pull-request
# Celebrate!