ansible_spec 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ansible_spec/version.rb +1 -1
- data/lib/src/spec/spec_helper.rb +8 -2
- data/spec/dependency_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661e661ae85944e236e4758161ba33e90935f00a
|
4
|
+
data.tar.gz: 57b656bca472d717d93e2fa1db6126e49d6afdbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18a2dc21930270208b66f522beb6b5458363950c88b96bcb4426ce66f0b77fee3ae3ba4ab0c35579b268c0692df0af8ac9241604d3b9730c829951a2f92258a5
|
7
|
+
data.tar.gz: c64b901c495a6df54342263d15472606b04b0b6833a7a31f378a1c3ff4200bb6526745231648d83046fa9919236465f2c03cffae87907708061b4d6e098c10ba
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v0.2.19
|
2
|
+
- Merge [#98 delete directory('roles','more_roles') after execute rpsec](https://github.com/volanja/ansible_spec/pull/98) by volanja
|
3
|
+
- Merge [#97 Add local connection test path](https://github.com/volanja/ansible_spec/pull/97) by [mtoriumi](https://github.com/mtoriumi)
|
4
|
+
|
1
5
|
# v0.2.18
|
2
6
|
- Merge [#96 Handle roles_path for role dependencies as well](https://github.com/volanja/ansible_spec/pull/96) by [agx](https://github.com/agx)
|
3
7
|
|
data/lib/ansible_spec/version.rb
CHANGED
data/lib/src/spec/spec_helper.rb
CHANGED
@@ -16,7 +16,8 @@ set_property vars
|
|
16
16
|
|
17
17
|
connection = ENV['TARGET_CONNECTION']
|
18
18
|
|
19
|
-
|
19
|
+
case connection
|
20
|
+
when 'ssh'
|
20
21
|
#
|
21
22
|
# OS type: UN*X
|
22
23
|
#
|
@@ -55,7 +56,7 @@ if connection != 'winrm'
|
|
55
56
|
|
56
57
|
# Set PATH
|
57
58
|
# set :path, '/sbin:/usr/local/sbin:$PATH'
|
58
|
-
|
59
|
+
when 'winrm'
|
59
60
|
#
|
60
61
|
# OS type: Windows
|
61
62
|
#
|
@@ -89,4 +90,9 @@ else
|
|
89
90
|
winrm.set_timeout 300 # 5 minutes max timeout for any operation
|
90
91
|
Specinfra.configuration.winrm = winrm
|
91
92
|
|
93
|
+
when 'local'
|
94
|
+
#
|
95
|
+
# local connection
|
96
|
+
#
|
97
|
+
set :backend, :exec
|
92
98
|
end
|
data/spec/dependency_spec.rb
CHANGED
@@ -63,6 +63,7 @@ EOF
|
|
63
63
|
File.delete(tmp_playbook)
|
64
64
|
File.delete(tmp_webapp_meta)
|
65
65
|
File.delete(tmp_dep1_meta)
|
66
|
+
FileUtils.rm_r(tmp_webapp_meta.split("/")[0])
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
@@ -85,6 +86,7 @@ EOF
|
|
85
86
|
|
86
87
|
after do
|
87
88
|
File.delete(tmp_webapp_meta)
|
89
|
+
FileUtils.rm_r(tmp_webapp_meta.split("/")[0])
|
88
90
|
end
|
89
91
|
end
|
90
92
|
|
@@ -108,5 +110,6 @@ EOF
|
|
108
110
|
|
109
111
|
after do
|
110
112
|
File.delete(tmp_webapp_meta)
|
113
|
+
FileUtils.rm_r(tmp_webapp_meta.split("/")[0])
|
111
114
|
end
|
112
115
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ansible_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- volanja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|