chef

https://github.com/opscode/chef

Ruby

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

Chef::Mixin::GetSourceFromPackage#initialize

FIXME:  this is some bad code that I wrote a long time ago.
 - it does too much in the initializer
 - it mutates the new_resource
 - it does not support multipackage arrays
this code is deprecated, check out the :use_package_names_for_source
subclass directive instead

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/mixin/get_source_from_package.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Mixin--GetSourceFromPackage-initialize-for-pr


# Commit to git

git add lib/chef/mixin/get_source_from_package.rbgit commit -m "better docs for Chef::Mixin::GetSourceFromPackage#initialize"


# 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--Mixin--GetSourceFromPackage-initialize-for-pr

hub pull-request


# Celebrate!