opscode-cookbooks/php — pull request #5 by djoos (2012-06-06 09:58:01+00:00)
Title: Additional rescue - Chef 0.10.10

Eg.
php_pear_channel "pear.symfony-project.com" do
action :discover
end

...fails because in the exists, "channel-info" is used and a Mixlib::ShellOut::ShellCommandFailed is thrown in Chef 0.10.10.

rescue Chef::Exceptions::ShellCommandFailed is required by 0.10.8
rescue Mixlib::ShellOut::ShellCommandFailed is new in 0.10.10
rescue NameError handles the missing Mixlib::ShellOut::ShellCommandFailed for 0.10.8

Let me know if you need any other information - thanks in advance!

Kind regards,
David Joos