chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Provider::Package#package_names_for_targets
Returns the package names which need to be modified. If the resource was called with an array of packages then this will return an array of packages to update (may have 0 or 1 entries). If the resource was called with a non-array package_name to manage then this will return a string rather than an Array. The output of this is meant to be fed into subclass interfaces to install/upgrade packages and not all of them are Array-aware.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/provider/package.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Provider--Package-package_names_for_targets-for-pr
# Commit to gitgit add lib/chef/provider/package.rbgit commit -m "better docs for Chef::Provider::Package#package_names_for_targets"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Provider--Package-package_names_for_targets-for-pr
hub pull-request
# Celebrate!