sfn 1.1.4 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sfn/monkey_patch/stack.rb +25 -23
- data/lib/sfn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33cc7d74a1c8f4392f0582809856400ed3853ba7
|
4
|
+
data.tar.gz: 8d8c74ef584bedcf110a8af780b83f0cb8b484e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4806b2694db30ba48e71aaa4c5de7c6c514a930e61529471ad4a3c23561b229086a501146f234356926a52a3c91f5e167db3f82f1158a655e998d059b5955406
|
7
|
+
data.tar.gz: 05fde4e6095043513c2c76cd19d7c72346fdbfb34679cbaec3bea85a810cdf1f8131d8a1bf43d8b60588717c508134ad7580c8fb1d3f6e1c1bef5130f9610c89
|
data/CHANGELOG.md
CHANGED
@@ -155,33 +155,35 @@ module Sfn
|
|
155
155
|
# prevent parameters being overridden
|
156
156
|
def apply_stack(remote_stack, ignore_params=nil)
|
157
157
|
default_key = 'Default'
|
158
|
-
stack_parameters = template
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
[
|
163
|
-
|
164
|
-
end.compact
|
165
|
-
]
|
166
|
-
if(ignore_params)
|
167
|
-
valid_parameters = Hash[
|
168
|
-
valid_parameters.map do |snake_param, camel_param|
|
169
|
-
unless(ignore_params.include?(camel_param))
|
170
|
-
[snake_param, camel_param]
|
158
|
+
stack_parameters = template['Parameters']
|
159
|
+
if(stack_parameters)
|
160
|
+
valid_parameters = Smash[
|
161
|
+
stack_parameters.map do |key, val|
|
162
|
+
unless(val['DisableApply'])
|
163
|
+
[snake(key), key]
|
171
164
|
end
|
172
165
|
end.compact
|
173
166
|
]
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
167
|
+
if(ignore_params)
|
168
|
+
valid_parameters = Hash[
|
169
|
+
valid_parameters.map do |snake_param, camel_param|
|
170
|
+
unless(ignore_params.include?(camel_param))
|
171
|
+
[snake_param, camel_param]
|
172
|
+
end
|
173
|
+
end.compact
|
174
|
+
]
|
180
175
|
end
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
176
|
+
if(persisted?)
|
177
|
+
remote_stack.outputs.each do |output|
|
178
|
+
if(param_key = valid_parameters[snake(output.key)])
|
179
|
+
parameters.merge!(param_key => output.value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else
|
183
|
+
remote_stack.outputs.each do |output|
|
184
|
+
if(param_key = valid_parameters[snake(output.key)])
|
185
|
+
stack_parameters[param_key][default_key] = output.value
|
186
|
+
end
|
185
187
|
end
|
186
188
|
end
|
187
189
|
end
|
data/lib/sfn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo-cli
|