vaws 0.8.2 → 0.8.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
  SHA256:
3
- metadata.gz: ca435519c8294b066a053a4bc36de39e8bd346bd9525c816078179d07b57739a
4
- data.tar.gz: f6288d2518b0bdec627bf92a95ffc88b59546f08ef80c7fbbe94488d8177f1a6
3
+ metadata.gz: 23c7c3c0dc64c7b2eeb1677a5c5abce642ddd9ffcaf8d71aa787f06e6d6a662d
4
+ data.tar.gz: d7bb34f784e22d1e4a8e1e6501ba7a438deb7516201195bdb08aaa10a5cc5cd4
5
5
  SHA512:
6
- metadata.gz: e05a075e2a9cbd643125f48f3af753d75237e75e43af04fb17bab6a020cb02b9347c15994870e351b69ce5dec53a6464d873f14ad43da6e08a2b063df0c1f999
7
- data.tar.gz: e7480c918eb5fbeb6bceaa2311f7d9cc75947f63c0db22b4d27a0781f4ee35bb51d5b7eb4984f91cd0efffaeb38ebe15e2cb38cd3effba480cd7fd62b72c41e7
6
+ metadata.gz: 520c7c8dc96930739bd780d6cf955ee9c798cc5685c0a2ebd5d4e6914131b9e1f6b4a081bfd79e71b2c97aab5558d5b9f0d195f85bacf826306744f6374f1da6
7
+ data.tar.gz: b0fbd850cccbb9e535f127ab6b322cf900d78205a323b3eb37ac99bc0d49879c96d19be76f49c21940ebea2227a5363cc6b389f300d5627d7685c06011098d73
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vaws (0.8.2)
4
+ vaws (0.8.3)
5
5
  aws-sdk-acm
6
6
  aws-sdk-ec2
7
7
  aws-sdk-ecs
@@ -47,7 +47,10 @@ module Vaws
47
47
  service_names.each_slice(1).to_a.each do |s|
48
48
  describe_services(cluster: cluster_name, service_names: s).services.each do |ds|
49
49
  ds.load_balancers.each do |lb|
50
- lb_target_group = lb.target_group_arn.gsub(/.*:targetgroup\//, '')
50
+ lb_container_name = lb.container_name
51
+ lb_container_port = lb.container_port
52
+ lb_target_group = lb.target_group_arn.gsub(/.*:targetgroup\//, '').gsub(/\/.*$/, '')
53
+ lb_target_group << ":#{lb_container_name}:#{lb_container_port}"
51
54
  end
52
55
 
53
56
  ds.deployments.each do |d|
@@ -61,17 +64,16 @@ module Vaws
61
64
  d.capacity_provider_strategy.each do |c|
62
65
  c_provider = c.capacity_provider
63
66
  end
64
- else
65
- c_provider = "EC2"
66
67
  end
67
68
  end
69
+ c_provider = ds.launch_type if c_provider.nil?
68
70
 
69
71
  rows << [task, d_count, r_count, p_count, lb_target_group, sg, updated_at, c_provider]
70
72
  task, d_count, r_count, p_count, lb_target_group, sg, updated_at, c_provider = nil
71
73
  end
72
74
  end
73
75
 
74
- Terminal::Table.new :headings => ['TaskDefinition', 'Desired', 'Running', 'Pending', 'LbTargetGroup', 'SecurityGroup', 'UpdatedAt', 'CapacityProvider'], :rows => rows.sort
76
+ Terminal::Table.new :headings => ['TaskDefinition', 'Desired', 'Running', 'Pending', 'LbTargetGroup:Container:Port', 'SecurityGroup', 'UpdatedAt', 'CapacityProvider'], :rows => rows.sort
75
77
  end
76
78
 
77
79
  def networks
@@ -1,3 +1,3 @@
1
1
  module Vaws
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vaws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Ito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler