ndo 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,10 @@ class Ndo::MultiCommand
32
32
  end
33
33
 
34
34
  def run_for_host(host)
35
- Ndo::Host.new(host).run(@command).first
35
+ begin
36
+ Ndo::Host.new(host).run(@command).first
37
+ rescue => b
38
+ "Failure: #{b}"
39
+ end
36
40
  end
37
41
  end
data/lib/ndo/results.rb CHANGED
@@ -10,7 +10,12 @@ class Ndo::Results
10
10
 
11
11
  include Enumerable
12
12
  def each
13
- @map.each { |host, future| yield host, future.value }
13
+ @map.each { |host, future|
14
+ begin
15
+ yield host, future.value
16
+ rescue Procrastinate::ChildDeath
17
+
18
+ end }
14
19
  end
15
20
 
16
21
  def store(host, future)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kaspar Schiess