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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab3d19e55721a01afceeab9daea2095ecf7db535
4
- data.tar.gz: 8ff233d19dd55ea99e7e42a312f9332d7e0afa9d
3
+ metadata.gz: 661e661ae85944e236e4758161ba33e90935f00a
4
+ data.tar.gz: 57b656bca472d717d93e2fa1db6126e49d6afdbe
5
5
  SHA512:
6
- metadata.gz: 0cbb81807e2721fb1d241e9aeb4b1f642ecac773c5a334abe1f7f343b2344cd1f50b9c95bfc8d02091c1f6b02398ff8e4bf9483dd602b629a32bba664ba6ee1d
7
- data.tar.gz: 0d33e6b56cd6968726e37203ff53d62b49ca03cb4e447acbae03c0394a1a88226a96846e929cf4062c7b96a8a6d2c2f0b5744ce80b2521cbae4d8b0c1ddd6cc4
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
 
@@ -1,3 +1,3 @@
1
1
  module AnsibleSpec
2
- VERSION = "0.2.18"
2
+ VERSION = "0.2.19"
3
3
  end
@@ -16,7 +16,8 @@ set_property vars
16
16
 
17
17
  connection = ENV['TARGET_CONNECTION']
18
18
 
19
- if connection != 'winrm'
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
- else
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
@@ -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.18
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-05 00:00:00.000000000 Z
11
+ date: 2017-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler