chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::Node::VividMash#convert_value

Mash uses #convert_value to mashify values on input.
We override it here to convert hash or array values to VividMash or
AttrArray for consistency and to ensure that the added parts of the
attribute tree will have the correct cache invalidation behavior.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/node/attribute_collections.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Node--VividMash-convert_value-for-pr


# Commit to git

git add lib/chef/node/attribute_collections.rbgit commit -m "better docs for Chef::Node::VividMash#convert_value"


# 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--Node--VividMash-convert_value-for-pr

hub pull-request


# Celebrate!