convection 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9b8d0433c05866fd06916a6dd1d94945702fe7
|
4
|
+
data.tar.gz: 2cc9df46b6095fd9f43face7cac8f485a4c107c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eace45822603aedd91ab9457f1a42d7467d2e5db88cc4efe912b22035782820f7d8ff031787c3cd296db1aa94f32b1c1f1ecfdaa0b614f8e70a4a61f484be552
|
7
|
+
data.tar.gz: d12539624c1cb327577ba7ee7b76455e9292207a450c45d3fe91cc88fd0beccaafa181e6c48eaba1d5134db862db01c45ac51aea3bec46a67e7c2cd849e886b4
|
@@ -14,7 +14,7 @@ module Convection
|
|
14
14
|
property :description, 'Description'
|
15
15
|
property :handler, 'Handler'
|
16
16
|
property :memory_size, 'MemorySize'
|
17
|
-
property :runtime, 'Runtime'
|
17
|
+
property :runtime, 'Runtime'
|
18
18
|
property :timeout, 'Timeout'
|
19
19
|
property :role, 'Role'
|
20
20
|
property :vpc_cfg, 'VpcConfig'
|
@@ -26,6 +26,12 @@ module Convection
|
|
26
26
|
properties['Code'].set(function_code)
|
27
27
|
end
|
28
28
|
|
29
|
+
def environment(&block)
|
30
|
+
env = ResourceProperty::LambdaEnvironment.new(self)
|
31
|
+
env.instance_exec(&block) if block
|
32
|
+
properties['Environment'].set(env)
|
33
|
+
end
|
34
|
+
|
29
35
|
# Add vpc_config block
|
30
36
|
def vpc_config(&block)
|
31
37
|
vpc_cfg = ResourceProperty::LambdaVpcConfig.new(self)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {http://docs.aws.amazon.com/lambda/latest/dg/API_Environment.html}
|
8
|
+
class LambdaEnvironment < ResourceProperty
|
9
|
+
property :variables, 'Variables'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -275,6 +275,7 @@ files:
|
|
275
275
|
- lib/convection/model/template/resource_property/aws_elbv2_target_group_matcher.rb
|
276
276
|
- lib/convection/model/template/resource_property/aws_elbv2_target_group_target_description.rb
|
277
277
|
- lib/convection/model/template/resource_property/aws_events_rule_target.rb
|
278
|
+
- lib/convection/model/template/resource_property/aws_lambda_environment.rb
|
278
279
|
- lib/convection/model/template/resource_property/aws_lambda_function_code.rb
|
279
280
|
- lib/convection/model/template/resource_property/aws_lambda_vpc_config.rb
|
280
281
|
- lib/convection/model/template/resource_property/aws_route53_alias_target.rb
|