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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2dfe3eb66664ba5c592e060c0c2257f890fa8ed03f7583d396857a8d1b789cd
|
4
|
+
data.tar.gz: 0577fcd3991f9e5fbb4b146c705c791a678523c04a025203255375ab1b264e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea89979f91b1a001a87c0779b57d7e6efad18a1897b0bc4ca8bcf69c0132694a4131c2d312d1451aa8cc0a8cd0cafa6abb44458097f69650e84a7ecd7026eae9
|
7
|
+
data.tar.gz: e7ab34cb43ad010ad12ae0dd4193c0cf247d24878bd07f2a4701d07d0fed419bc573c7ba649350b0d2e264a23864c63d9427fefa80184abdf915600ac85dcc5d
|
data/cfndsl_ext/lambda_helper.rb
CHANGED
@@ -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
|
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
|
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
|
-
|
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
|
226
|
+
def evaluateHighlanderTemplate
|
227
227
|
loadCfndslContent
|
228
228
|
|
229
229
|
cfhl_script = ''
|
data/lib/cfhighlander.version.rb
CHANGED
@@ -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.
|
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:
|
13
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|