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::Homebrew#candidate_version
Packages (formula) available to install should have a "stable" version, per the Homebrew project's acceptable formula documentation, so we will rely on that being the case. Older implementations of this provider in the homebrew cookbook would fall back to +brew_info['version']+, but the schema has changed, and homebrew is a constantly rolling forward project. https://github.com/Homebrew/homebrew/wiki/Acceptable-Formulae#stable-versions
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/provider/package/homebrew.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Provider--Package--Homebrew-candidate_version-for-pr
# Commit to gitgit add lib/chef/provider/package/homebrew.rbgit commit -m "better docs for Chef::Provider::Package::Homebrew#candidate_version"
# 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--Homebrew-candidate_version-for-pr
hub pull-request
# Celebrate!