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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ff41b031d25b35807d32b321e518418884367eb
4
- data.tar.gz: c640f2e35f83d0f3e5244e75c4237e2860586d5c
3
+ metadata.gz: 33cc7d74a1c8f4392f0582809856400ed3853ba7
4
+ data.tar.gz: 8d8c74ef584bedcf110a8af780b83f0cb8b484e9
5
5
  SHA512:
6
- metadata.gz: 809fa0ab54b3e669963ed04f6e02cee4fac79d9983e4e2857e20074d54157582ed7a1093d25428b8ecb035bcb8cb835e43c256c3bb1b2ad49c97c173032158b4
7
- data.tar.gz: 45bb35b42769af49bb4042417fe2034b16f07316001273ab59721c3e5128106985e17f14d212e1947e71652b6552a698b3a09d61b0ab3aea0c9455fb2df16823
6
+ metadata.gz: 4806b2694db30ba48e71aaa4c5de7c6c514a930e61529471ad4a3c23561b229086a501146f234356926a52a3c91f5e167db3f82f1158a655e998d059b5955406
7
+ data.tar.gz: 05fde4e6095043513c2c76cd19d7c72346fdbfb34679cbaec3bea85a810cdf1f8131d8a1bf43d8b60588717c508134ad7580c8fb1d3f6e1c1bef5130f9610c89
@@ -1,3 +1,6 @@
1
+ ## v1.1.6
2
+ * [fix] set proper parameter hash on apply stack (#67)
3
+
1
4
  ## v1.1.4
2
5
  * [feature] Add new `diff` command
3
6
 
@@ -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.fetch('Parameters', {})
159
- valid_parameters = Smash[
160
- stack_parameters.map do |key, val|
161
- unless(val['DisableApply'])
162
- [snake(key), key]
163
- end
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
- end
175
- if(persisted?)
176
- remote_stack.outputs.each do |output|
177
- if(param_key = valid_parameters[snake(output.key)])
178
- parameters.merge!(param_key => output.value)
179
- end
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
- else
182
- remote_stack.outputs.each do |output|
183
- if(param_key = valid_parameters[snake(output.key)])
184
- stack_parameters[param_key][default_key] = output.value
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
@@ -1,4 +1,4 @@
1
1
  module Sfn
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.1.4')
3
+ VERSION = Gem::Version.new('1.1.6')
4
4
  end
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
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-29 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-cli