chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Cookbook::Metadata#handle_deprecated_constraints
This method translates version constraint strings from cookbooks with the old format. Before we began respecting version constraints, we allowed multiple constraints to be placed on cookbooks, as well as the << and >> operators, which are now just < and >. For specifications with more than one constraint, we return an empty array (otherwise, we're silently abiding only part of the contract they have specified to us). If there is only one constraint, we are replacing the old << and >> with the new < and >.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/cookbook/metadata.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Cookbook--Metadata-handle_deprecated_constraints-for-pr
# Commit to gitgit add lib/chef/cookbook/metadata.rbgit commit -m "better docs for Chef::Cookbook::Metadata#handle_deprecated_constraints"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Cookbook--Metadata-handle_deprecated_constraints-for-pr
hub pull-request
# Celebrate!