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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a7b3ef343dd172f0554e85c77fe8a58f9652bda
4
- data.tar.gz: e90a265c6765cf1699002d2d6da50caea800fd3b
3
+ metadata.gz: 3cfa3c89a3827037a931f66c592ae08dbf90f06d
4
+ data.tar.gz: a57c6f8f571379d0d6f6f4fb148aed25039d0ff6
5
5
  SHA512:
6
- metadata.gz: e82ea971567484686e005daec6aab8a346425efdc379190f85a2e5595d716318d1063385e6456d7fc3560a73feb77617e8953cc353b06d044b92b6b0aac56a59
7
- data.tar.gz: fdb9e9df131160dd1b3c9c920e14cdcf3da493311f2deee6256a6d298dfd35f62d5cb14f3b930cef2fdd9cddadad361d835dac95dd4cb06bbf168f3d45d65653
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
- tasks << :stdout
249
- task :all => tasks
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|
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ServerspecRunner
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  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
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-10 00:00:00.000000000 Z
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.2
133
+ rubygems_version: 2.4.5
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: simple execution framework for serverspec