cfhighlander 0.6.1 → 0.7.0.alpha.1539253803

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: 878654061b345c872f208ac64e71b82b07980ab6a7a3473461d8cfc5f11a3a92
4
- data.tar.gz: 2ae505090ea7955520aafedac10869a34a2d402662f923ab578e027ddc3a4c18
3
+ metadata.gz: 229b8189ae6e94ec037ab24a56f7f5a08db541774838874933b7ceab055ca1be
4
+ data.tar.gz: 1a3a2fb4be02415c2b946607174e5f568d6679b8946e5a85460bc5a2a0487fc0
5
5
  SHA512:
6
- metadata.gz: 22bdf404a1aee8d76972ff692fb7e9566a32d9601aa971ccbaf38b278f6e630050bc8e1df2f02a26a951abaece69bac647d1d4dff4d7e8a3dec49cad1a4defff
7
- data.tar.gz: 15d767b1e46d63db01a949d7dc729cdcbf7285c35351c29798c76b1bbd5ea6a4b9d76e26692c56dd379146d79f1d3dcf2400f8aa31777ae2eabc04b9e9e1680a
6
+ metadata.gz: 211adccc53e6b274c4e9975d9cd3dbe04c459a6fd973c0c4307028dc8af9cd587aac8eabdbf4c68334d00af47b24ffff62599da280a97797ccb493ef32cec31b
7
+ data.tar.gz: 3590228746dfd1e8318b846891049eb364d4505196987bcc746231994ca75802767fb7511ccde02b942b1938bcc199e66b883f4e2aab44e828631cbe298c5430
@@ -171,7 +171,8 @@ 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
- return JSON.parse(model.to_json)
174
+
175
+
175
176
 
176
177
  end
177
178
 
@@ -44,7 +44,7 @@ module Cfhighlander
44
44
  model = component.cfn_model_raw
45
45
  template.subcomponents.each do |sub_component|
46
46
  next unless sub_component.inlined
47
- model['Resources'].delete(sub_component.cfn_name)
47
+ model['Resources'].delete(sub_component.component_loaded.name)
48
48
  end
49
49
  end
50
50
 
@@ -94,12 +94,6 @@ 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')
103
97
  inline_elements('Outputs', component, template)
104
98
  end
105
99
 
@@ -370,7 +364,7 @@ module Cfhighlander
370
364
  def self.rename_mapping(tree, search, replacement)
371
365
  tree.keys.each do |k|
372
366
  v = tree[k]
373
- if k == 'Fn::FindInMap' and v[0] == search
367
+ if k == 'Fn::FindInMap' and v[0] = search
374
368
  tree[k] = [replacement, v[1], v[2]]
375
369
  end
376
370
 
@@ -446,6 +440,9 @@ module Cfhighlander
446
440
 
447
441
  flatten_namespace('Resources', component, template)
448
442
  Debug.debug_dump_cfn(template, 'flat.resources')
443
+
444
+ flatten_namespace('Outputs', component, template)
445
+ Debug.debug_dump_cfn(template, 'flat.outputs')
449
446
  end
450
447
 
451
448
  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.6.1
4
+ version: 0.7.0.alpha.1539253803
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-11-21 00:00:00.000000000 Z
13
+ date: 2018-10-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
@@ -293,12 +293,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
293
293
  version: '0'
294
294
  required_rubygems_version: !ruby/object:Gem::Requirement
295
295
  requirements:
296
- - - ">="
296
+ - - ">"
297
297
  - !ruby/object:Gem::Version
298
- version: '0'
298
+ version: 1.3.1
299
299
  requirements: []
300
300
  rubyforge_project:
301
- rubygems_version: 2.7.8
301
+ rubygems_version: 2.7.7
302
302
  signing_key:
303
303
  specification_version: 4
304
304
  summary: DSL on top of cfndsl. Manage libraries of cloudformation components