kumogata-template 0.0.2 → 0.0.3

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: 95ac98de5cc9063b728caa5ec2a840c9e082120b
4
- data.tar.gz: 52d8e1f236a7e45574b6a7d266caa30b01c88700
3
+ metadata.gz: 5847d3069a5760206ce6ed27a3e9a9a27346be30
4
+ data.tar.gz: 926e9616a61038c9e9e06e34381bf5e30a4f2acc
5
5
  SHA512:
6
- metadata.gz: 5e79732c98ecafe6e4121c7b1c9e3f399d56b3af74861179b45cc878764e1c4fc9a0de2f28c74f0517968a489970581f78465b5c1d679597db29994633a101c5
7
- data.tar.gz: 0f45e9b8533b221123112d257b0f157549910b70511d12649f2f8c6b2219c461b5b5565c89cb66abdc9996b85dd53b05ede7085128e2aca4d343d84ac9a12de9
6
+ metadata.gz: ab2d6adcc316341eab02451f3df6d6d1548f61cf6ca243bd7f8d31a2d1b6a1530ee4357a6acd76308fe678d7bb17223a8f3f8313ac10009770aaa2693fc8b5e5
7
+ data.tar.gz: e9d0fd9037cfdce7bcbf0f6fc7b902623bae96e0fb2351a9e4bcbc3f91810746321e61bffa92315acbd9ea69b951cdf0279fe66c1e3635bc0d63054fad41d4e8
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kumogata-template (0.0.1)
5
- aws-sdk (~> 2)
4
+ kumogata-template (0.0.3)
5
+ aws-sdk (~> 2.3)
6
6
  kumogata (= 0.5.8)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- aws-sdk (2.2.27)
12
- aws-sdk-resources (= 2.2.27)
13
- aws-sdk-core (2.2.27)
11
+ aws-sdk (2.3.8)
12
+ aws-sdk-resources (= 2.3.8)
13
+ aws-sdk-core (2.3.8)
14
14
  jmespath (~> 1.0)
15
- aws-sdk-resources (2.2.27)
16
- aws-sdk-core (= 2.2.27)
15
+ aws-sdk-resources (2.3.8)
16
+ aws-sdk-core (= 2.3.8)
17
17
  aws-sdk-v1 (1.66.0)
18
18
  json (~> 1.4)
19
19
  nokogiri (>= 1.4.4)
@@ -23,13 +23,15 @@ GEM
23
23
  execjs
24
24
  coffee-script-source (1.10.0)
25
25
  diffy (3.1.0)
26
- dslh (0.2.7)
27
- execjs (2.6.0)
28
- hashie (3.4.3)
26
+ dslh (0.3.7)
27
+ execjs (2.7.0)
28
+ hashie (3.4.4)
29
29
  highline (1.7.8)
30
- jmespath (1.1.3)
30
+ jmespath (1.2.4)
31
+ json_pure (>= 1.8.1)
31
32
  json (1.8.3)
32
33
  json5 (0.0.1)
34
+ json_pure (1.8.3)
33
35
  kumogata (0.5.8)
34
36
  aws-sdk-v1
35
37
  coderay
@@ -47,11 +49,11 @@ GEM
47
49
  uuidtools
48
50
  libv8 (3.16.14.15)
49
51
  mini_portile2 (2.0.0)
50
- minitest (5.8.4)
51
- net-ssh (3.0.2)
52
+ minitest (5.9.0)
53
+ net-ssh (3.1.1)
52
54
  nokogiri (1.6.7.2)
53
55
  mini_portile2 (~> 2.0.0.rc2)
54
- rake (11.1.1)
56
+ rake (11.1.2)
55
57
  ref (2.0.0)
56
58
  retryable (2.0.3)
57
59
  term-ansicolor (1.3.2)
@@ -59,7 +61,7 @@ GEM
59
61
  therubyracer (0.12.2)
60
62
  libv8 (~> 3.16.14.0)
61
63
  ref
62
- tins (1.9.0)
64
+ tins (1.10.2)
63
65
  uuidtools (2.1.5)
64
66
 
65
67
  PLATFORMS
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'aws-sdk', '~> 2'
21
+ spec.add_dependency 'aws-sdk', '~> 2.3'
22
22
  spec.add_dependency 'kumogata', '0.5.8'
23
23
  spec.add_development_dependency 'bundler', '~> 1.11'
24
24
  spec.add_development_dependency 'rake', '~> 11.1'
@@ -83,22 +83,31 @@ def _elb_listeners(args)
83
83
 
84
84
  array = []
85
85
  listeners.each do |listener|
86
- proto = listener[:protocol].upcase
86
+ proto = listener[:protocol] || "http"
87
87
  protocol = _valid_values(proto, %w( http https tcp ssl ), "http")
88
- port = listener[:port] || case protocol
89
- when "http"
90
- 80
91
- when "https"
92
- 443
93
- end
94
- lb_port = listener[:lb_port] || port
88
+ lb_port =
89
+ case protocol
90
+ when "http"
91
+ 80
92
+ when "https"
93
+ 443
94
+ end
95
+ instance_proto = listener[:instance_protocol] || protocol
96
+ instance_protocol = _valid_values(instance_proto, %w( http https tcp ssl ), "http")
97
+ instance_port =
98
+ case instance_protocol
99
+ when "http"
100
+ 80
101
+ when "https"
102
+ 443
103
+ end
95
104
  policies = []
96
105
  policies << "ELBSecurityPolicy-2015-05" if protocol == "https" or protocol == "ssl"
97
106
  ssl = _ref_string("ssl", listener)
98
107
 
99
108
  array << _{
100
- InstancePort port
101
- InstanceProtocol protocol.upcase
109
+ InstancePort instance_port
110
+ InstanceProtocol instance_protocol.upcase
102
111
  LoadBalancerPort lb_port
103
112
  PolicyNames policies unless policies.empty?
104
113
  Protocol protocol.upcase
@@ -1 +1 @@
1
- KUMOGATA_TEMPLATE_VERSION = '0.0.2'
1
+ KUMOGATA_TEMPLATE_VERSION = '0.0.3'
@@ -9,7 +9,8 @@ name = _resource_name(args[:name], "network acl entry")
9
9
  cidr = args[:cidr] || "0.0.0.0/0"
10
10
  egress = _bool("egress", args, false)
11
11
  icmp = args[:icmp] || ""
12
- network_acl = _ref_string("network_acl", args, "network acl")
12
+ network_acl = _ref_attr_string("vpc_network_acl", "DefaultNetworkAcl", args, "vpc")
13
+ network_acl = _ref_string("network_acl", args, "network acl") if network_acl.empty?
13
14
  port_range = _ec2_port_range(args)
14
15
  protocol = _ec2_protocol_number(args[:protocol])
15
16
  rule_action = _valid_values(args[:action], %w( allow deny ), "allow")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoya Nakazawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2'
19
+ version: '2.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: kumogata
29
29
  requirement: !ruby/object:Gem::Requirement