opscode/chef — pull request #285 by jessehu (2012-05-04 16:45:29+00:00)
Title: CHEF-2627: run() and ssh_command() of Chef::Knife::Ssh should return the exit status of the SSH command executed

Hello Chef,

This patch to resolve CHEF-2627 (http://tickets.opscode.com/browse/CHEF-2627). It's inspired by the code snippet in Ironfan project : https://github.com/infochimps-labs/ironfan/blob/master/lib/chef/knife/cluster_ssh.rb#L100

I have tested it manually. Please take a look :)

Thanks!
Jesse Hu