chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::ChefFS::FileSystem::ChefServer::PolicyGroupEntry#write
write is different. For each policy: - PUT /organizations/ORG/policy_groups/GROUP/policies/POLICY For each policy on the server but not the client: - DELETE /organizations/ORG/policy_groups/GROUP/policies/POLICY If the server has associations for a, b and c, And the client wants associations for a, x and y, We must PUT a, x and y And DELETE b and c
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--ChefFS--FileSystem--ChefServer--PolicyGroupEntry-write-for-pr
# Commit to gitgit add lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rbgit commit -m "better docs for Chef::ChefFS::FileSystem::ChefServer::PolicyGroupEntry#write"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--ChefFS--FileSystem--ChefServer--PolicyGroupEntry-write-for-pr
hub pull-request
# Celebrate!