chef

https://github.com/opscode/chef

Ruby

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

ResourceInspector.inspect

If we're given no resources, dump all of Chef's built ins
otherwise, if we have a path then extract all the resources from the cookbook
or else do a list of built in resources

 @param complete [TrueClass, FalseClass] Whether to show properties defined in the base Resource class

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/resource_inspector.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ResourceInspector-inspect-for-pr


# Commit to git

git add lib/chef/resource_inspector.rbgit commit -m "better docs for ResourceInspector.inspect"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ResourceInspector-inspect-for-pr

hub pull-request


# Celebrate!