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::Dynamic#load_node

Loads the node state from the server, then picks the correct
implementation class based on the node and json_attribs.

Calls #finish_load_node on the implementation object to complete the
loading process. All subsequent lifecycle calls are delegated.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/policy_builder/dynamic.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--PolicyBuilder--Dynamic-load_node-for-pr


# Commit to git

git add lib/chef/policy_builder/dynamic.rbgit commit -m "better docs for Chef::PolicyBuilder::Dynamic#load_node"


# 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--PolicyBuilder--Dynamic-load_node-for-pr

hub pull-request


# Celebrate!