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::DataHandler::DataHandlerBase#to_ruby_keys
Helper to write out a Ruby file for a JSON hash. Writes out only
the keys specified in "keys"; anything else must be emitted by the
caller.
== Example
to_ruby_keys({"name" => "foo", "environment" => "desert", "foo": "bar"}, [ "name", "environment" ])
->
'name "foo"
environment "desert"'Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/chef_fs/data_handler/data_handler_base.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--ChefFS--DataHandler--DataHandlerBase-to_ruby_keys-for-pr
# Commit to gitgit add lib/chef/chef_fs/data_handler/data_handler_base.rbgit commit -m "better docs for Chef::ChefFS::DataHandler::DataHandlerBase#to_ruby_keys"
# 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--DataHandler--DataHandlerBase-to_ruby_keys-for-pr
hub pull-request
# Celebrate!