convection 1.0.0.pre.beta.6 → 1.0.0.pre.beta.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4500414b1ee23d5ad537b09f1705e68ed6c6a0f
|
4
|
+
data.tar.gz: 368287f0ccb09692a0d76dafaeeacccf1938f273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4410d91a421d50ca510d9109c08acc719172a314e87847bb746ed76ca98b76510a0baac61037d69df62510528f8869dea0aba4f1b06235ebe47a7355f7ee7039
|
7
|
+
data.tar.gz: 50a9a849752e4ab8c91b99b18697585b4a7f4d13d57f197d1abb16053f5daa9ad3d74aa7df1ff41f5ca472b0900adf17d7774c5df4c41ab8e01742e314ecdbbc
|
@@ -28,9 +28,14 @@ module Convection
|
|
28
28
|
property :vpc_id, 'VpcId'
|
29
29
|
|
30
30
|
# Append an attribute to target_group_attributes
|
31
|
-
def target_group_attribute(&block)
|
31
|
+
def target_group_attribute(key = nil, value = nil, &block)
|
32
32
|
attribute = ResourceProperty::ELBV2TargetGroupAttribute.new(self)
|
33
|
-
|
33
|
+
if key && value
|
34
|
+
attribute.key key
|
35
|
+
attribute.value value
|
36
|
+
elsif block
|
37
|
+
attribute.instance_exec(&block)
|
38
|
+
end
|
34
39
|
target_group_attributes << attribute
|
35
40
|
end
|
36
41
|
|
@@ -42,10 +47,14 @@ module Convection
|
|
42
47
|
end
|
43
48
|
alias target_description target
|
44
49
|
|
45
|
-
def matcher(&block)
|
50
|
+
def matcher(http_code = nil, &block)
|
46
51
|
m = ResourceProperty::ELBV2TargetGroupMatcher.new(self)
|
47
|
-
|
48
|
-
|
52
|
+
if http_code
|
53
|
+
m.http_code http_code
|
54
|
+
elsif block
|
55
|
+
m.instance_exec(&block)
|
56
|
+
end
|
57
|
+
match m
|
49
58
|
end
|
50
59
|
|
51
60
|
def render(*args)
|
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.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|