befog 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/befog/commands/run.rb +3 -2
- metadata +1 -1
data/lib/befog/commands/run.rb
CHANGED
@@ -47,8 +47,9 @@ module Befog
|
|
47
47
|
else
|
48
48
|
raise "Must specify one of --shell or --command"
|
49
49
|
end
|
50
|
+
threads = []
|
50
51
|
run_for_selected do |id|
|
51
|
-
threads
|
52
|
+
threads << Thread.new do
|
52
53
|
safely do
|
53
54
|
# TODO: Add check to see if we have a bad ID in the config
|
54
55
|
server = get_server(id)
|
@@ -63,8 +64,8 @@ module Befog
|
|
63
64
|
end
|
64
65
|
end
|
65
66
|
end
|
66
|
-
sleep 1 while threads.any? { |t| t.alive? }
|
67
67
|
end
|
68
|
+
sleep 1 while threads.any? { |t| t.alive? }
|
68
69
|
end
|
69
70
|
|
70
71
|
end
|