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#candidates_exist_for_all_forced_changes?
This looks for packages which have a new_version and a current_version, and they are different (a "forced change") and for which there is no candidate. This is an edge condition that candidates_exist_for_all_uninstalled? does not catch since in this case it is not uninstalled but must be installed anyway and no version exists.
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-candidates_exist_for_all_forced_changes--for-pr
# Commit to gitgit add lib/chef/provider/package.rbgit commit -m "better docs for Chef::Provider::Package#candidates_exist_for_all_forced_changes?"
# 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-candidates_exist_for_all_forced_changes--for-pr
hub pull-request
# Celebrate!