lib/cloudkick/commands/parallel.rb in cloudkick-0.2.7 vs lib/cloudkick/commands/parallel.rb in cloudkick-0.2.8
- old
+ new
@@ -25,10 +25,10 @@
end
end
file.flush
begin
- exec("pssh -i -h #{file.path} -l #{username} #{command}")
+ system("pssh -i -h #{file.path} -l #{username} '#{command}'")
rescue
raise CommandFailed, 'cloudkick: command not found: pssh'
end
file.close
end