cfhighlander 0.7.0.alpha.1539253803 → 0.7.0.alpha.1539554880

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: 229b8189ae6e94ec037ab24a56f7f5a08db541774838874933b7ceab055ca1be
4
- data.tar.gz: 1a3a2fb4be02415c2b946607174e5f568d6679b8946e5a85460bc5a2a0487fc0
3
+ metadata.gz: 0e9aac115a71d923c39ebf9380b04920f804ffabeb334857d6a193141c5d5d60
4
+ data.tar.gz: 4fdfbee33ecd1bb029ff6c43fa0d5d1f3435f2e74999c70ad46426916cb5a338
5
5
  SHA512:
6
- metadata.gz: 211adccc53e6b274c4e9975d9cd3dbe04c459a6fd973c0c4307028dc8af9cd587aac8eabdbf4c68334d00af47b24ffff62599da280a97797ccb493ef32cec31b
7
- data.tar.gz: 3590228746dfd1e8318b846891049eb364d4505196987bcc746231994ca75802767fb7511ccde02b942b1938bcc199e66b883f4e2aab44e828631cbe298c5430
6
+ metadata.gz: c63486123a0cd3e5774f5cbaf0f84bccd0d7b8e525d65dbdb54371426fb076e4429a7700c4ac4567b78ce73841b74a4c5726bc0d6d765dc383e815583aee4322
7
+ data.tar.gz: 4b5f5a6d7cd2cb0941bf0d3f459c8304235ad9ade294437077b174a3482023d64db315f9e020e33288a0fa92f545119789eb2cdf48ae26dda053a606dbb15e0c
@@ -171,8 +171,7 @@ module Cfhighlander
171
171
  # `cfndsl #{@cfndsl_compiled_path} -p -f #{format} -o #{output_path} --disable-binding`
172
172
  puts "CloudFormation #{format.upcase} template for #{dsl.name} written to #{output_path}"
173
173
 
174
-
175
-
174
+ return JSON.parse(model.to_json)
176
175
 
177
176
  end
178
177
 
@@ -94,6 +94,12 @@ module Cfhighlander
94
94
  inline_elements('Conditions', component, template)
95
95
  inline_elements('Mappings', component, template)
96
96
  inline_elements('Resources', component, template)
97
+
98
+ # outputs are renamed AFTER all of the other processing
99
+ # has been done, as outputs are referenced. Only
100
+ # outputs of inlined components are renamed
101
+ flatten_namespace('Outputs', component, template)
102
+ Debug.debug_dump_cfn(template, 'flat.outputs')
97
103
  inline_elements('Outputs', component, template)
98
104
  end
99
105
 
@@ -364,7 +370,7 @@ module Cfhighlander
364
370
  def self.rename_mapping(tree, search, replacement)
365
371
  tree.keys.each do |k|
366
372
  v = tree[k]
367
- if k == 'Fn::FindInMap' and v[0] = search
373
+ if k == 'Fn::FindInMap' and v[0] == search
368
374
  tree[k] = [replacement, v[1], v[2]]
369
375
  end
370
376
 
@@ -440,9 +446,6 @@ module Cfhighlander
440
446
 
441
447
  flatten_namespace('Resources', component, template)
442
448
  Debug.debug_dump_cfn(template, 'flat.resources')
443
-
444
- flatten_namespace('Outputs', component, template)
445
- Debug.debug_dump_cfn(template, 'flat.outputs')
446
449
  end
447
450
 
448
451
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfhighlander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.alpha.1539253803
4
+ version: 0.7.0.alpha.1539554880
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Tosic
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-10-11 00:00:00.000000000 Z
13
+ date: 2018-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline