ndo 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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