kumo_keisei 3.0.2 → 3.0.3.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kumo_keisei/stack.rb +7 -7
- 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: dbf6edffef4e70ddee3ad6e38c75b59598b5ed12
|
4
|
+
data.tar.gz: 2edb60e6922d09fc3b3b834226e694b547286ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864d8e16880e90e20a1d54c1b86e2825c9256c877d52eb7a5b2c541b106c07452c3fb7949e11e33e7c42d0d23954292d34891c793668f415244cf8687f868dff
|
7
|
+
data.tar.gz: 507140020c71dc1ebec30c885fe7fd75c06bbdb92b263aa796e44becbd9f2f16a7f1b4a8fbb6a09f96d9ae338ba25bf376657b59d03e65b2bb980be24acc6a4f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.3-alpha1
|
data/lib/kumo_keisei/stack.rb
CHANGED
@@ -116,13 +116,10 @@ module KumoKeisei
|
|
116
116
|
def create!(stack_config)
|
117
117
|
raise StackValidationError.new("The stack name needs to be 32 characters or shorter") if @stack_name.length > 32
|
118
118
|
|
119
|
-
params_template_path = File.absolute_path(File.join(File.dirname(stack_config[:template_path]), "#{@app_name}.yml.erb"))
|
120
|
-
config = EnvironmentConfig.new(stack_config.merge(params_template_file_path: params_template_path))
|
121
|
-
|
122
119
|
cloudformation.create_stack(
|
123
120
|
stack_name: @stack_name,
|
124
121
|
template_body: File.read(stack_config[:template_path]),
|
125
|
-
parameters:
|
122
|
+
parameters: environment_config(stack_config).cf_params,
|
126
123
|
capabilities: ["CAPABILITY_IAM"],
|
127
124
|
on_failure: "DELETE"
|
128
125
|
)
|
@@ -135,14 +132,12 @@ module KumoKeisei
|
|
135
132
|
end
|
136
133
|
|
137
134
|
def update!(stack_config)
|
138
|
-
params_template_path = File.absolute_path(File.join(File.dirname(stack_config[:template_path]), "#{@app_name}.yml.erb"))
|
139
|
-
config = EnvironmentConfig.new(stack_config.merge(params_template_file_path: params_template_path))
|
140
135
|
wait_until_ready(false)
|
141
136
|
|
142
137
|
cloudformation.update_stack(
|
143
138
|
stack_name: @stack_name,
|
144
139
|
template_body: File.read(stack_config[:template_path]),
|
145
|
-
parameters:
|
140
|
+
parameters: environment_config(stack_config).cf_params,
|
146
141
|
capabilities: ["CAPABILITY_IAM"]
|
147
142
|
)
|
148
143
|
|
@@ -156,6 +151,11 @@ module KumoKeisei
|
|
156
151
|
raise UpdateError.new("Stack update failed for #{@stack_name}.")
|
157
152
|
end
|
158
153
|
|
154
|
+
def environment_config(stack_config)
|
155
|
+
params_template_path = File.absolute_path(File.join(File.dirname(stack_config[:template_path]), "#{@app_name}.yml.erb"))
|
156
|
+
EnvironmentConfig.new(stack_config.merge(params_template_file_path: params_template_path))
|
157
|
+
end
|
158
|
+
|
159
159
|
def stack_events_url
|
160
160
|
"https://console.aws.amazon.com/cloudformation/home?region=#{ENV['AWS_DEFAULT_REGION']}#/stacks?filter=active&tab=events&stackId=#{get_stack.stack_id}"
|
161
161
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumo_keisei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3.pre.alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
@@ -130,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- - "
|
133
|
+
- - ">"
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version:
|
135
|
+
version: 1.3.1
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
138
|
rubygems_version: 2.2.2
|