serverspec-runner 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/bin/serverspec-runner +16 -10
- data/lib/serverspec-runner/version.rb +1 -1
- data/serverspec-runner.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc83f878117fc8f27f196e13292e7071a3ed43d88885e0f5be5792cad9dbafed
|
4
|
+
data.tar.gz: 7f0a8ed97f12751bbe817076ce855b005b76743e6de6c771e75ace9e1e3c6331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbf284b4ec854aef7a896bae1164b61171a7e154e659777899c6a8db4d2de7c746d89c019d655e0057ed8ec83b9dde238df4a15bcba35cbe0aec5a5550506be5
|
7
|
+
data.tar.gz: 4abae87e6472e65dd714a4b5d5fcb6317ddd736735017114e5ae0d9e38ebf027ab41fc30fc065e7be924662045fd074fca5ea6ca303ee23abcf8b058dbd20e2e
|
data/Rakefile
CHANGED
@@ -208,8 +208,8 @@ namespace :spec do
|
|
208
208
|
gen_exec_plan(nil, scenarios, [], ssh_options, tasks, platform)
|
209
209
|
|
210
210
|
task :stdout do
|
211
|
-
|
212
|
-
|
211
|
+
if ENV['tableformat'] == 'none'
|
212
|
+
elsif ENV['tableformat'] == 'bool'
|
213
213
|
|
214
214
|
ret = 'ok'
|
215
215
|
CSV.foreach(csv_file) do |r|
|
data/bin/serverspec-runner
CHANGED
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'rake'
|
7
7
|
require 'getoptlong'
|
8
|
+
require 'serverspec-runner/version'
|
8
9
|
|
9
10
|
raketask = 'spec'
|
10
11
|
showtasks = false
|
@@ -17,6 +18,7 @@ opts = GetoptLong.new(
|
|
17
18
|
["--explain", "-e", GetoptLong::REQUIRED_ARGUMENT],
|
18
19
|
["--tableformat", "-t", GetoptLong::REQUIRED_ARGUMENT],
|
19
20
|
["--parallel", "-p", GetoptLong::REQUIRED_ARGUMENT],
|
21
|
+
["--version", "-v", GetoptLong::NO_ARGUMENT],
|
20
22
|
["--help", "-h", GetoptLong::NO_ARGUMENT],
|
21
23
|
["--raketask", "-1", GetoptLong::REQUIRED_ARGUMENT],
|
22
24
|
["--tmpdir", "-2", GetoptLong::REQUIRED_ARGUMENT],
|
@@ -45,18 +47,22 @@ opts.each do |opt, arg|
|
|
45
47
|
raketask = arg
|
46
48
|
when '--tasks'
|
47
49
|
showtasks = true
|
50
|
+
when '--version'
|
51
|
+
puts ServerspecRunner::VERSION
|
52
|
+
exit 0
|
48
53
|
else
|
49
54
|
puts "Usage: serverspec-runner (options)"
|
50
|
-
puts "-s, --scenario SCENARIO_FILE
|
51
|
-
puts "-i, --inventory INVENTORY_FILE
|
52
|
-
puts "-r, --specroot SPEC_ROOT
|
53
|
-
puts "-o, --ssh_options SSH_OPTIONS_FILE
|
54
|
-
puts "-e, --explain (short|long)
|
55
|
-
puts "-t, --tableformat (aa|mkd|csv|bool)
|
56
|
-
puts "-T, --tasks
|
57
|
-
puts "-p, --parallel
|
58
|
-
puts "-1, --raketask RAKE_TASK_NAME
|
59
|
-
puts "-
|
55
|
+
puts "-s, --scenario SCENARIO_FILE path to scenario yml file"
|
56
|
+
puts "-i, --inventory INVENTORY_FILE path to ansible inventory yml file"
|
57
|
+
puts "-r, --specroot SPEC_ROOT path to spec tests root dir"
|
58
|
+
puts "-o, --ssh_options SSH_OPTIONS_FILE path to ssh options yml file"
|
59
|
+
puts "-e, --explain (short|long) specify result explain length(default: short)"
|
60
|
+
puts "-t, --tableformat (aa|mkd|csv|bool|none) specify result table type(default: aa)"
|
61
|
+
puts "-T, --tasks display the tasks with descriptions(exec rake -T)"
|
62
|
+
puts "-p, --parallel execute tasks in parallel"
|
63
|
+
puts "-1, --raketask RAKE_TASK_NAME execute specified rake task only(ex: spec:test::anyhost-01)"
|
64
|
+
puts "-v, --version show version"
|
65
|
+
puts "-h, --help show help"
|
60
66
|
exit 0
|
61
67
|
end
|
62
68
|
end
|
data/serverspec-runner.gemspec
CHANGED
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "serverspec"
|
22
22
|
spec.add_runtime_dependency "net-ssh"
|
23
|
+
spec.add_runtime_dependency 'psych', '~> 2.2.1'
|
24
|
+
spec.add_runtime_dependency "yaml_db"
|
23
25
|
spec.add_development_dependency "rake"
|
24
26
|
spec.add_development_dependency "rspec-core"
|
25
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hiracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: psych
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.2.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.2.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yaml_db
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rake
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|