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 +4 -4
- data/lib/cfhighlander.compiler.rb +1 -2
- data/lib/util/cloudformation.util.rb +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9aac115a71d923c39ebf9380b04920f804ffabeb334857d6a193141c5d5d60
|
4
|
+
data.tar.gz: 4fdfbee33ecd1bb029ff6c43fa0d5d1f3435f2e74999c70ad46426916cb5a338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
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.
|
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-
|
13
|
+
date: 2018-10-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|