kumogata-template 0.0.36 → 0.0.37

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
  SHA256:
3
- metadata.gz: 7c8d9ab5748134f2d4b2f803d7a699707c951515945790d0874e2dbae7d290f0
4
- data.tar.gz: 401347892cbc9146e7e7f8c35eb6f0a57026695eeee659c4f038610a4c51d957
3
+ metadata.gz: 0646a6b1d8086f11ba8f6ca0c4ecb977c45883025eb95159d16ea7fd89148b8f
4
+ data.tar.gz: 05c5008e9ce34e8c7caad78821e1c07a9df5b98f32d2a60bfd101f7a8c4f78ce
5
5
  SHA512:
6
- metadata.gz: 7acf0b5c6353373debd184868eb057e6a07ac307307ef4de9e3c4a0115460514ef90a049232f9721be81e2e6d35510d820dd20e2a20dfb84da401854ad119d8a
7
- data.tar.gz: 4cf9d0c4105dde1a10aa1dd903c42a0f2b1d8c1caed6e539db15490221f34ab26dcb35a68e2fa482d5ed88d7d45e431b960b1b1dd1c116b1da0a23e419c39694
6
+ metadata.gz: 3520ef75fbc78b8bf692b1a635e30ae05e45f8ec8befd88c08012187fae52db0df07009584ff0b55b337934d983b62f54d5551c2ab9eb0924103497e4e082b6c
7
+ data.tar.gz: 424af8a79c349607abe89d1ad939e8785f95b1d36e6b73ab96ed7dddf384be899596e4da5d9fae7a8086e2844b34c48b7a65681020c2bc79aa4670b37d50ad91
@@ -255,7 +255,7 @@ def _ecs_port_mappings(args)
255
255
  (args[:port_mappings] || args[:ports] || []).collect do |port|
256
256
  host = _ref_string("host", port, 'host port')
257
257
  _{
258
- ContainerPort _ref_string("port", port, 'container port')
258
+ ContainerPort _ref_string("container", port, 'container port')
259
259
  HostPort host unless host.empty?
260
260
  Protocol _valid_values(port[:protocol], %w( tcp udp ), 'tcp')
261
261
  }
@@ -1 +1 @@
1
- KUMOGATA_TEMPLATE_VERSION = '0.0.36'
1
+ KUMOGATA_TEMPLATE_VERSION = '0.0.37'
@@ -23,7 +23,7 @@ Test _ecs_load_balancers(load_balancers: [ { name: "test", port: 80, lb_name: "t
23
23
 
24
24
  def test_ecs_container
25
25
  template = <<-EOS
26
- Test _ecs_containers(containers: [ { name: "test", image: "test", port_mappings: [ { port: 80 } ] } ])
26
+ Test _ecs_containers(containers: [ { name: "test", image: "test", port_mappings: [ { container: 80 } ] } ])
27
27
  EOS
28
28
  act_template = run_client_as_json(template)
29
29
  exp_template = <<-EOS
@@ -83,7 +83,7 @@ Test _ecs_mount_points(mount_points: [ { path: "/", source: "/" } ])
83
83
 
84
84
  def test_ecs_port_mappings
85
85
  template = <<-EOS
86
- Test _ecs_port_mappings(port_mappings: [ { port: 80 } ])
86
+ Test _ecs_port_mappings(port_mappings: [ { container: 80 } ])
87
87
  EOS
88
88
  act_template = run_client_as_json(template)
89
89
  exp_template = <<-EOS
@@ -3,7 +3,7 @@ require 'abstract_unit'
3
3
  class EcsTaskDefinitionTest < Minitest::Test
4
4
  def test_normal
5
5
  template = <<-EOS
6
- _ecs_task_definition "test", containers: [ { name: "test", image: "test", ports: [ { port: 80 } ] } ], volumes: [ "test": "/test" ]
6
+ _ecs_task_definition "test", containers: [ { name: "test", image: "test", ports: [ { container: 80 } ] } ], volumes: [ "test": "/test" ]
7
7
  EOS
8
8
  act_template = run_client_as_json(template)
9
9
  exp_template = <<-EOS
@@ -75,7 +75,7 @@ container1 = {
75
75
  image: "amazon/amazon-ecs-sample",
76
76
  memory: 500,
77
77
  mounts: [ { source: "my-vol", path: "/var/www/my-vol" } ],
78
- ports: [ { ref_port: "app", ref_host: "app" } ],
78
+ ports: [ { ref_container: "app", ref_host: "app" } ],
79
79
  }
80
80
  container2 = {
81
81
  name: "busybox",
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.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoya Nakazawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -525,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
525
525
  version: '0'
526
526
  requirements: []
527
527
  rubyforge_project:
528
- rubygems_version: 2.7.4
528
+ rubygems_version: 2.7.6
529
529
  signing_key:
530
530
  specification_version: 4
531
531
  summary: Template for Kumogata.