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::Policyfile#select_policy_name_and_group
Selects the `policy_name` and `policy_group` from the following sources in priority order: 1. JSON attribs (i.e., `-j JSON_FILE`) 2. `Chef::Config` 3. The node object The selected values are then copied to `Chef::Config` and the node.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/policy_builder/policyfile.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--PolicyBuilder--Policyfile-select_policy_name_and_group-for-pr
# Commit to gitgit add lib/chef/policy_builder/policyfile.rbgit commit -m "better docs for Chef::PolicyBuilder::Policyfile#select_policy_name_and_group"
# 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--Policyfile-select_policy_name_and_group-for-pr
hub pull-request
# Celebrate!