houcho 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/houcho +34 -17
- data/lib/houcho/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7507d97a03907ede046c497483d4b392050c9cc0
|
4
|
+
data.tar.gz: 1d12b359fbb0b67fc970aeb1ff1039f0873ac9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
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
|
data/lib/houcho/version.rb
CHANGED