lib/cloudkick/commands/parallel.rb in cloudkick-0.2.6 vs lib/cloudkick/commands/parallel.rb in cloudkick-0.2.7
- old
+ new
@@ -4,17 +4,15 @@
class Pssh < Base
def index
unless args.size == 6 or args.size == 8
raise CommandFailed, 'usage: cloudkick pssh --query <query> ' \
'--username <username> ' \
- '--output <output> ' \
'--command <command>'
end
query = extract_option('--query')
username = extract_option('--username')
- output = extract_option('--output')
command = extract_option('--command')
file = Tempfile.new('ck')
if query
@@ -27,10 +25,10 @@
end
end
file.flush
begin
- exec("pssh -h #{file.path} -l #{username} -o #{output} #{command}")
+ exec("pssh -i -h #{file.path} -l #{username} #{command}")
rescue
raise CommandFailed, 'cloudkick: command not found: pssh'
end
file.close
end