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#minimize

Remove all default values from a Chef object's JSON so that the only
thing you see are the values that have been explicitly set.
Achieves this by calling normalize({}, entry) to get the list of
defaults, and subtracting anything that is the same.

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-Chef--ChefFS--DataHandler--DataHandlerBase-minimize-for-pr


# Commit to git

git add lib/chef/chef_fs/data_handler/data_handler_base.rbgit commit -m "better docs for Chef::ChefFS::DataHandler::DataHandlerBase#minimize"


# 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--ChefFS--DataHandler--DataHandlerBase-minimize-for-pr

hub pull-request


# Celebrate!