kitchen-cloudformation 1.5.0 → 1.5.1

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
  SHA256:
3
- metadata.gz: 4b081e6ab2c48fa7a7d86d2ad40505ad1830eabd5adbf970c1ec74bb03637bd8
4
- data.tar.gz: ca9fe026702761a503dc23615e9d2e01f8699cfabe0f1117f3b3fbd2b4492431
3
+ metadata.gz: a7abc6a2ff2b5318416679e1a3609f2584a356952174d3d4c3dc64fe701ff156
4
+ data.tar.gz: 28621b855b97a48c2a678b5fd80aa9f7ea57749c30264724db30d9e394eae313
5
5
  SHA512:
6
- metadata.gz: 6be3bce72b8f307d63ef165eac1c6697599518ddaa9b0c490286d68596c17e4ec54cf0d1d2d0eaac1b12a36f3819735f15387786b15b4deba3fec7c1936c5610
7
- data.tar.gz: 2a39b6b0afd846f52e61fcb9524f7e1b3b2052198a2735e17a54504ff4f6076dec96c85c0a9d7542eef811b3c855e145bcb66ca02993aae13ba7ea3624df39e3
6
+ metadata.gz: 03e08ea0ee7e6b1a8eba8d628b2d1ddc59fb0c2ed4ed29be834aaae31f389b5c9d59b5616135f904e8c738217f2838ee5d27f2d2695fa6dea293782a39ed3563
7
+ data.tar.gz: 46fa4b73b02a39ff42dc1e17baa4ca28431b21412013ec325b19b1b790703a22dfe5fd77ac59251a6112ca839e2be51136fa9cb95debdf0080dfee680227c504
@@ -34,7 +34,7 @@ module Kitchen
34
34
  # can be passed in null, others need to be ommitted if they are null
35
35
  def cf_stack_data
36
36
  s = { stack_name: config[:stack_name] }
37
- s[:template_url] = config[:template_url] if config[:template_file]
37
+ s[:template_url] = config[:template_url] if config[:template_file].nil?
38
38
  if config[:template_file]
39
39
  s[:template_body] = File.open(config[:template_file], 'rb') { |file| file.read }
40
40
  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.5.0'.freeze
17
+ CLOUDFORMATION_VERSION = '1.5.1'.freeze
18
18
  end
19
19
  end
@@ -1,47 +1,47 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- require 'kitchen'
17
- # require "kitchen/cloudformation/configurable"
18
-
19
- # The design of the provisioner is unconventional compared to other Test Kitchen provisioner plugins. Since Cloudformation
20
- # creates and provisions resources when applying an execution plan, managed by the driver, the provisioner simply
21
- # proxies the driver's create action to apply any changes to the existing Cloudformation state.
22
- #
23
- # === Configuration
24
- #
25
- # ==== Example .kitchen.yml snippet
26
- #
27
- # provisioner:
28
- # name: cloudformation
29
- #
30
- # @see ::Kitchen::Driver::Cloudformation
31
- # rubocop:disable Style/ClassAndModuleChildren
32
- class ::Kitchen::Provisioner::Cloudformation < ::Kitchen::Provisioner::Base
33
- kitchen_provisioner_api_version 2
34
-
35
- # include ::Kitchen::Cloudformation::Configurable
36
-
37
- # Proxies the driver's create action.
38
- #
39
- # @example
40
- # `kitchen converge suite-name`
41
- # @param state [::Hash] the mutable instance and provisioner state.
42
- # @raise [::Kitchen::ActionFailed] if the result of the action is a failure.
43
- def call(state)
44
- info("State is <#{state}>.")
45
- instance.driver.update state
46
- end
47
- end
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require 'kitchen'
17
+ # require "kitchen/cloudformation/configurable"
18
+
19
+ # The design of the provisioner is unconventional compared to other Test Kitchen provisioner plugins. Since Cloudformation
20
+ # creates and provisions resources when applying an execution plan, managed by the driver, the provisioner simply
21
+ # proxies the driver's create action to apply any changes to the existing Cloudformation state.
22
+ #
23
+ # === Configuration
24
+ #
25
+ # ==== Example .kitchen.yml snippet
26
+ #
27
+ # provisioner:
28
+ # name: cloudformation
29
+ #
30
+ # @see ::Kitchen::Driver::Cloudformation
31
+ # rubocop:disable Style/ClassAndModuleChildren
32
+ class ::Kitchen::Provisioner::Cloudformation < ::Kitchen::Provisioner::Base
33
+ kitchen_provisioner_api_version 2
34
+
35
+ # include ::Kitchen::Cloudformation::Configurable
36
+
37
+ # Proxies the driver's create action.
38
+ #
39
+ # @example
40
+ # `kitchen converge suite-name`
41
+ # @param state [::Hash] the mutable instance and provisioner state.
42
+ # @raise [::Kitchen::ActionFailed] if the result of the action is a failure.
43
+ def call(state)
44
+ info("State is <#{state}>.")
45
+ instance.driver.update state
46
+ end
47
+ 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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-12 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.0.3
119
+ rubygems_version: 3.0.4
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A Test Kitchen Driver for AWS CloudFormation