houcho 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/houcho +34 -17
  3. data/lib/houcho/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df80b6d9b4a0a338d66374bb5e501e4d0fa31500
4
- data.tar.gz: bcaeec04d22f9a472d19777fcc607e27c84d42ad
3
+ metadata.gz: 7507d97a03907ede046c497483d4b392050c9cc0
4
+ data.tar.gz: 1d12b359fbb0b67fc970aeb1ff1039f0873ac9a1
5
5
  SHA512:
6
- metadata.gz: 59f8a36ce57a130e0f5f7c5614ca6642e4e3b2c31207960e8dfe7f1c2a5d1d23ec5959955df843a63d412eec6b5568b0451dda4f267d4a0c2cde8f0ba49e2a1f
7
- data.tar.gz: daaf4b414679b21c6d61a0ceb27f0d475d6262afd4073eede9e1e4453499dace3ad0ffd73b07a3e7a3e629b3eff4f6ce25f5e1004d821a225e54b21ba2016934
6
+ metadata.gz: f8e6196a85525d9b1ab2c98fb4f8bd040262d35b8d0b34a89bf511d5536fba3f0c7a2636e6c1d25723f5ae3f72566011cefd440e44c8bc97b35e61272551d08f
7
+ data.tar.gz: bcda04b358bdc47d2e2eb8231a92ae702dfaa45370a48c56cfa08a56a90e059c2253395022e9806a9dab4e29fe3390aea430ea87c31a5077614da3bfd099e459
data/bin/houcho CHANGED
@@ -68,7 +68,14 @@ class SpecConduct < Thor::MyHelper
68
68
  option :sample_host_count, :type => :numeric, :default => 5, :desc => 'number of sample hosts'
69
69
  def check(*args)
70
70
  Helper.empty_args(self, shell, __method__) if args.empty?
71
- messages = Spec::Runner.check(args, options[:sample_host_count]) rescue puts $!.message; exit!
71
+
72
+ begin
73
+ messages = Spec::Runner.check(args, options[:sample_host_count])
74
+ rescue
75
+ puts $!.message
76
+ exit!
77
+ end
78
+
72
79
  messages.each do |msg|
73
80
  puts msg
74
81
  end
@@ -82,14 +89,19 @@ class SpecConduct < Thor::MyHelper
82
89
  def exec(*args)
83
90
  Helper.empty_args(self, shell, __method__) if args.empty?
84
91
 
85
- messages = Spec::Runner.exec(
86
- [], [], options[:hosts], args,
87
- {
88
- ukigumo: options[:ukigumo],
89
- ikachan: options[:ikachan],
90
- },
91
- options[:dry_run],
92
- ) rescue puts $!.message; exit!
92
+ begin
93
+ messages = Spec::Runner.exec(
94
+ [], [], options[:hosts], args,
95
+ {
96
+ ukigumo: options[:ukigumo],
97
+ ikachan: options[:ikachan],
98
+ },
99
+ options[:dry_run],
100
+ )
101
+ rescue
102
+ puts $!.message
103
+ exit!
104
+ end
93
105
 
94
106
  messages.each do |msg|
95
107
  puts msg
@@ -167,14 +179,19 @@ class RoleConduct < Thor::MyHelper
167
179
  def exec(*args)
168
180
  Helper.empty_args(self, shell, __method__) if args.empty?
169
181
 
170
- messages = Spec::Runner.exec(
171
- args, (options[:exclude_hosts]||[]), [], [],
172
- {
173
- ukigumo: options[:ukigumo],
174
- ikachan: options[:ikachan],
175
- },
176
- options[:dry_run],
177
- ) rescue puts $!.message; exit!
182
+ begin
183
+ messages = Spec::Runner.exec(
184
+ args, (options[:exclude_hosts]||[]), [], [],
185
+ {
186
+ ukigumo: options[:ukigumo],
187
+ ikachan: options[:ikachan],
188
+ },
189
+ options[:dry_run],
190
+ )
191
+ rescue
192
+ puts $!.message
193
+ exit!
194
+ end
178
195
 
179
196
  messages.each do |msg|
180
197
  puts msg
@@ -1,3 +1,3 @@
1
1
  module Houcho
2
- VERSION = "0.0.4"
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: houcho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI