serverspec-runner 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -3
- data/bin/serverspec-runner +4 -0
- data/lib/serverspec-runner/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cfa3c89a3827037a931f66c592ae08dbf90f06d
|
4
|
+
data.tar.gz: a57c6f8f571379d0d6f6f4fb148aed25039d0ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de14013f8f67c4323642a246379f10ace822969952fd6a725e53e510c97743d9467161949971357a07289f76492b9a8c4a6297851d5a478411d58b4a33508a41
|
7
|
+
data.tar.gz: c9bcee28759fa3a6b3792d84d9b32053cba03948e6f01565c9dacba80413339b04592b7f8161a442eb3b90edffe48202f6fbdaa7522ccb5d52920b645fd3e128
|
data/Rakefile
CHANGED
@@ -178,7 +178,7 @@ namespace :spec do
|
|
178
178
|
tasks = []
|
179
179
|
gen_exec_plan(nil, scenarios, [], ssh_options, tasks, platform)
|
180
180
|
|
181
|
-
task :stdout do
|
181
|
+
task :stdout => [:test] do
|
182
182
|
|
183
183
|
if ENV['tableformat'] == 'bool'
|
184
184
|
|
@@ -245,8 +245,13 @@ namespace :spec do
|
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
248
|
-
|
249
|
-
|
248
|
+
if ENV['exec_mode'] == 'parallel'
|
249
|
+
multitask :test => tasks
|
250
|
+
else
|
251
|
+
task :test => tasks
|
252
|
+
end
|
253
|
+
|
254
|
+
task :all => [:stdout]
|
250
255
|
|
251
256
|
# tempファイルに書き出し
|
252
257
|
open(ENV['platforms_tmp'] ,"w") do |y|
|
data/bin/serverspec-runner
CHANGED
@@ -15,6 +15,7 @@ opts = GetoptLong.new(
|
|
15
15
|
["--ssh_options", "-o", GetoptLong::REQUIRED_ARGUMENT],
|
16
16
|
["--explain", "-e", GetoptLong::REQUIRED_ARGUMENT],
|
17
17
|
["--tableformat", "-t", GetoptLong::REQUIRED_ARGUMENT],
|
18
|
+
["--parallel", "-p", GetoptLong::NO_ARGUMENT],
|
18
19
|
["--help", "-h", GetoptLong::NO_ARGUMENT],
|
19
20
|
["--tmpdir", "-1", GetoptLong::REQUIRED_ARGUMENT],
|
20
21
|
["--raketask", "-2", GetoptLong::REQUIRED_ARGUMENT],
|
@@ -33,6 +34,8 @@ opts.each do |opt, arg|
|
|
33
34
|
ENV['explain'] = arg
|
34
35
|
when '--tableformat'
|
35
36
|
ENV['tableformat'] = arg
|
37
|
+
when '--parallel'
|
38
|
+
ENV['exec_mode'] = 'parallel'
|
36
39
|
when '--tmpdir'
|
37
40
|
ENV['tmpdir'] = arg
|
38
41
|
when '--raketask'
|
@@ -47,6 +50,7 @@ opts.each do |opt, arg|
|
|
47
50
|
puts "-e, --explain (short|long) specify result explain length(default: short)"
|
48
51
|
puts "-t, --tableformat (aa|mkd|csv|bool) specify result table type(default: aa)"
|
49
52
|
puts "-T, --tasks display the tasks with descriptions(exec rake -T)"
|
53
|
+
puts "-p, --parallel execute tasks in parallel"
|
50
54
|
puts "-h, --help show help"
|
51
55
|
exit 0
|
52
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hiracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.4.
|
133
|
+
rubygems_version: 2.4.5
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: simple execution framework for serverspec
|