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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7abc6a2ff2b5318416679e1a3609f2584a356952174d3d4c3dc64fe701ff156
|
4
|
+
data.tar.gz: 28621b855b97a48c2a678b5fd80aa9f7ea57749c30264724db30d9e394eae313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.
|
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-
|
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.
|
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
|