lib/cloudkick/commands/parallel.rb in cloudkick-0.2.2 vs lib/cloudkick/commands/parallel.rb in cloudkick-0.2.3

- old
+ new

@@ -26,10 +26,14 @@ file.puts node.ipaddress end end file.flush - exec("pssh -h #{file.path} -l #{username} -o #{output} #{command}") + begin + exec("pssh -h #{file.path} -l #{username} -o #{output} #{command}") + rescue + raise CommandFailed, 'cloudkick: command not found: pssh' + end file.close end end class Pscp < Base