chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector#extract_412_error_message
In my tests, the error from the server is double JSON encoded, but we
should not rely on this not getting fixed.
Return *should* be a Hash like this:
{ "non_existent_cookbooks" => ["nope"],
"cookbooks_with_no_versions" => [],
"message" => "Run list contains invalid items: no such cookbook nope."}Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Formatters--ErrorInspectors--CookbookResolveErrorInspector-extract_412_error_message-for-pr
# Commit to gitgit add lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rbgit commit -m "better docs for Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector#extract_412_error_message"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Formatters--ErrorInspectors--CookbookResolveErrorInspector-extract_412_error_message-for-pr
hub pull-request
# Celebrate!