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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8b6413186cf620aa770f3edf0a0cd0e43423a69
4
- data.tar.gz: a796500599de24d644660dcabfde361374e85335
3
+ metadata.gz: 3883eee90445d050be51672d83d969ba7074a5f4
4
+ data.tar.gz: 0ac9b6345cd456d11f9d67f988770a5168b8ab90
5
5
  SHA512:
6
- metadata.gz: 510c8df116dd61765534720551462e496e465ca097c07aacfd353c6524b202dc5db0bb919502166855dd6295d2fe31fe18f54195493bdbb09c964edf7efd8b58
7
- data.tar.gz: 25581e9e976e8cd093da2ead699f8a7e038bea8ca5397d4b90a40caa94fdf8620fd786f051b67b6f40906d56726905651b70c82a45979682cc325ca85ae3a436
6
+ metadata.gz: 2a4cca813dce8b8ebe317982cd2271c34dfe6684a425f705e8850c0ba8e8421dc47cc312087cada8fd9b8363b88892f6952668b041809470bb729403aac4c683
7
+ data.tar.gz: 312ce9103687fc0f2d47ab0d7f610adbf3ad01f30135c3d0e3d7c61960717d117cddb6e2a1d5dd6c239ec41e2c965991afdac82583b33cc098a667e7e3059612
@@ -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
- display_stack_events(state[:stack_name])
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
@@ -14,6 +14,6 @@
14
14
  module Kitchen
15
15
  module Driver
16
16
  # Version string for CloudFormation Test Kitchen driver
17
- CLOUDFORMATION_VERSION = '1.1.0'.freeze
17
+ CLOUDFORMATION_VERSION = '1.2.0'.freeze
18
18
  end
19
19
  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.1.0
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-01-05 00:00:00.000000000 Z
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.2.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