kitchen-cloudformation 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -11
- data/LICENSE +12 -12
- data/lib/kitchen/driver/cloudformation.rb +5 -3
- data/lib/kitchen/driver/cloudformation_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: 3883eee90445d050be51672d83d969ba7074a5f4
|
4
|
+
data.tar.gz: 0ac9b6345cd456d11f9d67f988770a5168b8ab90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4cca813dce8b8ebe317982cd2271c34dfe6684a425f705e8850c0ba8e8421dc47cc312087cada8fd9b8363b88892f6952668b041809470bb729403aac4c683
|
7
|
+
data.tar.gz: 312ce9103687fc0f2d47ab0d7f610adbf3ad01f30135c3d0e3d7c61960717d117cddb6e2a1d5dd6c239ec41e2c965991afdac82583b33cc098a667e7e3059612
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
## 1.0.3 / 2016-02-20
|
2
|
-
|
3
|
-
* add capabilities
|
4
|
-
* correct name so lowercase is supported.
|
5
|
-
(Note: Cloudformation is also suported by NOT CloudFormation)
|
6
|
-
* Code passes travisCI
|
7
|
-
|
8
|
-
|
9
|
-
## 0.0.1 / 2015-05-28
|
10
|
-
|
11
|
-
* Initial Version
|
1
|
+
## 1.0.3 / 2016-02-20
|
2
|
+
|
3
|
+
* add capabilities
|
4
|
+
* correct name so lowercase is supported.
|
5
|
+
(Note: Cloudformation is also suported by NOT CloudFormation)
|
6
|
+
* Code passes travisCI
|
7
|
+
|
8
|
+
|
9
|
+
## 0.0.1 / 2015-05-28
|
10
|
+
|
11
|
+
* Initial Version
|
data/LICENSE
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
-
you may not use this file except in compliance with the License.
|
4
|
-
You may obtain a copy of the License at
|
5
|
-
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
|
8
|
-
Unless required by applicable law or agreed to in writing, software
|
9
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
-
See the License for the specific language governing permissions and
|
12
|
-
limitations under the License.
|
1
|
+
|
2
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
you may not use this file except in compliance with the License.
|
4
|
+
You may obtain a copy of the License at
|
5
|
+
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
|
8
|
+
Unless required by applicable law or agreed to in writing, software
|
9
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
See the License for the specific language governing permissions and
|
12
|
+
limitations under the License.
|
@@ -72,7 +72,6 @@ module Kitchen
|
|
72
72
|
return
|
73
73
|
end
|
74
74
|
state[:stack_name] = stack.stack_name
|
75
|
-
state[:hostname] = config[:hostname]
|
76
75
|
info("Stack <#{state[:stack_name]}> requested.")
|
77
76
|
# tag_stack(stack)
|
78
77
|
|
@@ -83,11 +82,14 @@ module Kitchen
|
|
83
82
|
sleep(30)
|
84
83
|
s = cf.get_stack(state[:stack_name])
|
85
84
|
end
|
85
|
+
display_stack_events(state[:stack_name])
|
86
86
|
if s.stack_status == 'CREATE_COMPLETE'
|
87
|
-
|
87
|
+
outputs = Hash[*s.outputs.map do |o|
|
88
|
+
[o[:output_key], o[:output_value]]
|
89
|
+
end.flatten]
|
90
|
+
state[:hostname] = config[:hostname].gsub(/\${([^}]+)}/) { outputs[Regexp.last_match(1)] || '' } if config[:hostname]
|
88
91
|
info("CloudFormation stack <#{state[:stack_name]}> created.")
|
89
92
|
else
|
90
|
-
display_stack_events(state[:stack_name])
|
91
93
|
error("CloudFormation stack <#{stack.stack_name}> failed to create....attempting to delete")
|
92
94
|
destroy(state)
|
93
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-cloudformation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.4.5.1
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: A Test Kitchen Driver for Amazon AWS CloudFormation
|