cfhighlander 0.12.7 → 0.12.9

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: d2dfe3eb66664ba5c592e060c0c2257f890fa8ed03f7583d396857a8d1b789cd
4
- data.tar.gz: 0577fcd3991f9e5fbb4b146c705c791a678523c04a025203255375ab1b264e98
3
+ metadata.gz: 9cf537c7bf80a801d6b795bb27a7e21376cc5d69840ab19c263a98573ea837fd
4
+ data.tar.gz: 064f4a84dfa1d15781f9ff09d18391953b6b6a3a4d610e5a895f9ed9bad976bf
5
5
  SHA512:
6
- metadata.gz: ea89979f91b1a001a87c0779b57d7e6efad18a1897b0bc4ca8bcf69c0132694a4131c2d312d1451aa8cc0a8cd0cafa6abb44458097f69650e84a7ecd7026eae9
7
- data.tar.gz: e7ab34cb43ad010ad12ae0dd4193c0cf247d24878bd07f2a4701d07d0fed419bc573c7ba649350b0d2e264a23864c63d9427fefa80184abdf915600ac85dcc5d
6
+ metadata.gz: babeedc823c19df370067cc96f6dd00ac04f66a8c7e2ceffaa6973dc7b44d1802b204898b711619389979a236c3a6698284d5fef8bc594ed8cff714846c9bc32
7
+ data.tar.gz: a19f90de3b97d8b5bd22468c633dbff79c89d5f87ae8175db6040133a4f9b01a3ee2cfbcfa7a5309d4effd8bc4dd55accf528a0ea4f8dc979ad33e42239952dd
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.7".freeze
2
+ VERSION="0.12.9".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.7
4
+ version: 0.12.9
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-03-31 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