chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::DSL::DeclareResource#resources
Find existing resources by searching the list of existing resources. Possible forms are: find(:file => "foobar") find(:file => [ "foobar", "baz" ]) find("file[foobar]", "file[baz]") find("file[foobar,baz]") Calls `run_context.resource_collection.find(*args)` The is backcompat API, the use of find_resource, below, is encouraged.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/dsl/declare_resource.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--DSL--DeclareResource-resources-for-pr
# Commit to gitgit add lib/chef/dsl/declare_resource.rbgit commit -m "better docs for Chef::DSL::DeclareResource#resources"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--DSL--DeclareResource-resources-for-pr
hub pull-request
# Celebrate!