cfhighlander 0.12.6 → 0.12.7

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: 027f0a6c56f3a766b3e3a4a9d95bdfbc39b45c23b1611f486276778393096d83
4
- data.tar.gz: b1d84694799ade5e1fbd1d3b0c4f3f6639415cc9f5fe26e2c71dc3b2d0844df8
3
+ metadata.gz: d2dfe3eb66664ba5c592e060c0c2257f890fa8ed03f7583d396857a8d1b789cd
4
+ data.tar.gz: 0577fcd3991f9e5fbb4b146c705c791a678523c04a025203255375ab1b264e98
5
5
  SHA512:
6
- metadata.gz: '00423813c66c9fb442ae1fc56e8bae4479d2db9b2d4c0eaf55a55cdae59e4e0e9e582c2e14353e43fdbcb6e0531e33be3757892ce3a1929a5632b851d17e4e29'
7
- data.tar.gz: d6ae0381d9707121d3c96eb3359828306aeef62220176d147bd1d44e20d1c536863f34f040ae44d619db83d7c291d16fe7f363ad32608a203e3790478069730f
6
+ metadata.gz: ea89979f91b1a001a87c0779b57d7e6efad18a1897b0bc4ca8bcf69c0132694a4131c2d312d1451aa8cc0a8cd0cafa6abb44458097f69650e84a7ecd7026eae9
7
+ data.tar.gz: e7ab34cb43ad010ad12ae0dd4193c0cf247d24878bd07f2a4701d07d0fed419bc573c7ba649350b0d2e264a23864c63d9427fefa80184abdf915600ac85dcc5d
@@ -30,6 +30,7 @@ def render_lambda_functions(cfndsl, lambdas, lambda_metadata, distribution)
30
30
  S3Bucket: distribution['bucket'],
31
31
  S3Key: "#{distribution['prefix']}/#{distribution['version']}/#{lambda_metadata['path'][key]}"
32
32
  })
33
+ Layers lambda_config['layers'] unless lambda_config['layers'].nil?
33
34
 
34
35
  Environment(Variables: Hash[environment.collect { |k, v| [k, v] }])
35
36
 
@@ -474,11 +474,11 @@ def CfhighlanderTemplate(&block)
474
474
 
475
475
  if @parent_dsl.nil?
476
476
  instance = Cfhighlander::Dsl::HighlanderTemplate.new
477
- puts "Processing higlander component #{@name}\n\tLocation:#{@highlander_dsl_path}" +
477
+ puts "Processing highlander component #{@name}\n\tLocation:#{@highlander_dsl_path}" +
478
478
  "\n\tConfig:#{@config}"
479
479
  else
480
480
  instance = @parent_dsl
481
- puts "Processing higlander component #{@name}\n\tLocation:#{@highlander_dsl_path}" +
481
+ puts "Processing highlander component #{@name}\n\tLocation:#{@highlander_dsl_path}" +
482
482
  "\n\tConfig:#{@config}\n\tParent: #{@parent_template}"
483
483
  end
484
484
 
@@ -153,7 +153,7 @@ module Cfhighlander
153
153
 
154
154
 
155
155
  # evaluate template file and load parent if defined
156
- evaluateHiglanderTemplate
156
+ evaluateHighlanderTemplate
157
157
 
158
158
  # set version if not defined
159
159
  @highlander_dsl.ComponentVersion(@version) unless @version.nil?
@@ -223,7 +223,7 @@ module Cfhighlander
223
223
  end
224
224
  end
225
225
 
226
- def evaluateHiglanderTemplate
226
+ def evaluateHighlanderTemplate
227
227
  loadCfndslContent
228
228
 
229
229
  cfhl_script = ''
@@ -1,3 +1,3 @@
1
1
  module Cfhighlander
2
- VERSION="0.12.6".freeze
2
+ VERSION="0.12.7".freeze
3
3
  end
@@ -42,7 +42,11 @@ CloudFormation do
42
42
  <% for @param in dsl.parameters.param_list %>
43
43
  Parameter('<%= @param.name %>') do
44
44
  Type '<%= @param.type %>'
45
+ <%- if ['Number', 'List<Number>'].include?(@param.type) -%>
46
+ Default <%= @param.default_value %>
47
+ <%- else -%>
45
48
  Default '<%= @param.default_value %>'
49
+ <%- end -%>
46
50
  <%- unless @param.no_echo.nil? -%>
47
51
  NoEcho <%= @param.no_echo %>
48
52
  <%- 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.6
4
+ version: 0.12.7
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: 2021-08-17 00:00:00.000000000 Z
13
+ date: 2022-03-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline