cfhighlander 0.12.8 → 0.13.0

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: ce9596bfe2e0a988d21ef1f23b567b7b3cd1d71f343daffe255a82bc097fbde6
4
- data.tar.gz: 489472343feeb7a3422d37c0069f8f3c639dea0813ead2e7a1f2c8ad2cfb2829
3
+ metadata.gz: 9b7307f53eadd829977025dfca693aedb1167fb264c7284761838daf4e37245c
4
+ data.tar.gz: 59b506bfcb6841b5acc9c1bc8b875af571a18deba848783771de2734bea4bb08
5
5
  SHA512:
6
- metadata.gz: 02bb5a53d8688683c238083bad087b9abe101d4c4a52b37f00994d16cbc87b09d21e299ba7c7ac2475b812eb62dfa37f77deae8ee9a9117598dcdadaf64e366d
7
- data.tar.gz: 79f4cabecdf3b2b581f37072a1ff99c73f92c8ca7b74985f2c174b52f4a2b02049048112970c39d2f8c91aa9576e0f672f9608ca5a6a1e47c5f0f8918074f0fd
6
+ metadata.gz: 109058d0c98dc7e2df36b7f71ba2706399cdcf81a99d1584ffcf2eee6ba74b00b00bb3e87d0ac62093d578167365d81bc0bf2409ae1346352eb44e8b609249ef
7
+ data.tar.gz: b28cdb029069893b1c49c4222bcf15138e14fa5fc0dfe51981e652d0252e8704bc284b323242936ff0b3786806099bf18fc4a3949cc329f2a27471f8b5af2b1e
data/README.md CHANGED
@@ -336,7 +336,7 @@ for component named `vpc` works just as well:
336
336
  # contents of vpc.config.yaml in outer component, defining vpc component
337
337
 
338
338
  # line below prevents component configuration file being merged with outer component configuration
339
- subcomponent_config_file:
339
+ subcomponent_config_file: true
340
340
 
341
341
  # there is no need for components/vpc/config structure, it is implied by file name
342
342
  maximum_availibility_zones: 3
@@ -199,7 +199,9 @@ module Cfhighlander
199
199
  config_yaml_path = "#{@config_output_location}/#{@component_name}.config.yaml"
200
200
  FileUtils.mkdir_p(@config_output_location) unless Dir.exist?(@config_output_location)
201
201
 
202
- File.write(config_yaml_path, @component.config.to_yaml)
202
+ config_yaml = JSON.parse(@component.config.to_json).to_yaml
203
+ File.write(config_yaml_path, config_yaml)
204
+
203
205
  puts "Config for #{@component.highlander_dsl.name} written to #{config_yaml_path}"
204
206
 
205
207
  if write_subcomponents_config
@@ -75,7 +75,7 @@ module Cfhighlander
75
75
  @config = {} if @config.nil?
76
76
  Dir["#{@component_dir}/*.config.yaml"].each do |config_file|
77
77
  puts "INFO Loading config for #{@name}: read file:#{config_file} "
78
- partial_config = YAML.load(File.read(config_file))
78
+ partial_config = YAML.load(File.read(config_file, aliases: true))
79
79
  if (not partial_config)
80
80
  STDERR.puts "WARNING: Configuration file #{config_file} could not be loaded"
81
81
  next
@@ -1,3 +1,3 @@
1
1
  module Cfhighlander
2
- VERSION="0.12.8".freeze
2
+ VERSION="0.13.0".freeze
3
3
  end
@@ -112,7 +112,7 @@ module Cfhighlander
112
112
  if sub_component.conditional
113
113
  # If the resource already has a conditon we need to combine it with the stack condition
114
114
  if element_name == 'Conditions'
115
- value = { "Fn::And" => [{"Condtion" => sub_component.condition}, value]}
115
+ value = { "Fn::And" => [{"Condition" => sub_component.condition}, value]}
116
116
  end
117
117
  # Adds the condition to the inlined resource if it doesn't already have a condition
118
118
  if element_name == 'Resources'
@@ -470,4 +470,4 @@ module Cfhighlander
470
470
 
471
471
  end
472
472
  end
473
- end
473
+ 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.12.8
4
+ version: 0.13.0
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: 2022-05-17 00:00:00.000000000 Z
13
+ date: 2023-02-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
@@ -206,6 +206,26 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '1.1'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rexml
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3.2'
216
+ - - "<"
217
+ - !ruby/object:Gem::Version
218
+ version: '4'
219
+ type: :runtime
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - "~>"
224
+ - !ruby/object:Gem::Version
225
+ version: '3.2'
226
+ - - "<"
227
+ - !ruby/object:Gem::Version
228
+ version: '4'
209
229
  - !ruby/object:Gem::Dependency
210
230
  name: rspec
211
231
  requirement: !ruby/object:Gem::Requirement
@@ -282,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
302
  - !ruby/object:Gem::Version
283
303
  version: '0'
284
304
  requirements: []
285
- rubygems_version: 3.1.6
305
+ rubygems_version: 3.3.26
286
306
  signing_key:
287
307
  specification_version: 4
288
308
  summary: DSL on top of cfndsl. Manage libraries of cloudformation components