cloudkick 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cloudkick.gemspec +1 -1
- data/lib/cloudkick/commands/help.rb +0 -1
- data/lib/cloudkick/commands/parallel.rb +1 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/cloudkick.gemspec
CHANGED
@@ -6,13 +6,11 @@ module Cloudkick::Command
|
|
6
6
|
unless args.size == 6 or args.size == 8
|
7
7
|
raise CommandFailed, 'usage: cloudkick pssh --query <query> ' \
|
8
8
|
'--username <username> ' \
|
9
|
-
'--output <output> ' \
|
10
9
|
'--command <command>'
|
11
10
|
end
|
12
11
|
|
13
12
|
query = extract_option('--query')
|
14
13
|
username = extract_option('--username')
|
15
|
-
output = extract_option('--output')
|
16
14
|
command = extract_option('--command')
|
17
15
|
|
18
16
|
file = Tempfile.new('ck')
|
@@ -29,7 +27,7 @@ module Cloudkick::Command
|
|
29
27
|
|
30
28
|
file.flush
|
31
29
|
begin
|
32
|
-
exec("pssh -h #{file.path} -l #{username}
|
30
|
+
exec("pssh -i -h #{file.path} -l #{username} #{command}")
|
33
31
|
rescue
|
34
32
|
raise CommandFailed, 'cloudkick: command not found: pssh'
|
35
33
|
end
|