ssh_voodoo 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/lib/ssh_voodoo.rb +9 -3
  2. data/ssh_voodoo.gemspec +1 -1
  3. metadata +4 -4
data/lib/ssh_voodoo.rb CHANGED
@@ -184,9 +184,15 @@ class SshVoodoo
184
184
  end
185
185
  end
186
186
  tp.shutdown
187
- puts "Exit statuses: "
188
- puts statuses.inspect
189
-
187
+
188
+ failed = statuses.reject{|k,v| v == 0}.keys
189
+ if failed.empty?
190
+ puts "Command ran successfully on all hosts."
191
+ else
192
+ puts "Command failed to run on the following hosts:\n"
193
+ puts failed
194
+ end
195
+
190
196
  return statuses
191
197
  end
192
198
  end
data/ssh_voodoo.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "ssh_voodoo"
7
- s.version = "0.0.2"
7
+ s.version = "0.0.3"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Darren Dao"]
10
10
  s.email = ["darrendao@gmail.com"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh_voodoo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darren Dao
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-09 00:00:00 Z
18
+ date: 2012-05-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: net-ssh