befog 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/befog/commands/run.rb +3 -2
  2. metadata +1 -1
@@ -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 = []; threads << Thread.new do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: befog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: