cloudformation-tool 1.2.1 → 1.2.2

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: 06e60f20bd426c7bc9a5a4155b245e9c821a04efc9d160f38698597c65540786
4
- data.tar.gz: 42c4c4591c884a273cc5e5afc4987d96f6455faa1fe2e0bae09fadff58112072
3
+ metadata.gz: 15f7ca4dd9a56c71678b984eee089dea7b320bf9e0e7b3d02f72f6d52c3b0182
4
+ data.tar.gz: 519a9758535c8323f472b512128a96f676eaa611147a0202a09542eb5bee8418
5
5
  SHA512:
6
- metadata.gz: 5965d055430f3015261c79585a42fc7fe4f45bc42c982a243b3aa161a883dee49066db543c7a793da60050c07181bc33ca5b3cc505d68b21af6477f9611ae720
7
- data.tar.gz: 57486ffee6db6beb3ac404de21ff40023e6dd712b492a577416c68c6dbca1383be521e3e2e6604e4ed9aef9824031687e39b4f2c29529a6b019e388405886c27
6
+ metadata.gz: f3b0164a2992ee13b4a0278f17fd396f7e4e49718b2c5b7a524894fc1a6002ea070295d3127d646d782b4f3b6d0de85641791ad91932d63b099a1e23b30d79b9
7
+ data.tar.gz: 41bc98433f5ec0eae331b6733c1f6b26dbdaf25e320b0c57c1763148efd3b62798808f1db612f84c8817210db0555e8caf7c6c709a3960849462a2052fd1baf6
data/bin/cftool CHANGED
@@ -7,9 +7,6 @@ begin
7
7
  rescue SocketError => e
8
8
  warn "Networking error: #{e.message}"
9
9
  exit 1
10
- rescue Seahorse::Client::NetworkingError => e
11
- warn "Networking error: #{e.message}"
12
- exit 1
13
10
  rescue CloudFormationTool::Errors::BaseError => e
14
11
  warn e.message
15
12
  exit 1
@@ -16,13 +16,18 @@ module CloudFormationTool
16
16
  asg_name.nil? or (res.logical_resource_id == asg_name)
17
17
  end.collect do |res|
18
18
  Thread.new do
19
- awsas.describe_auto_scaling_groups({
19
+ asg = awsas.describe_auto_scaling_groups({
20
20
  auto_scaling_group_names: [ res.physical_resource_id ]
21
- }).auto_scaling_groups.first.instances.collect do |i|
22
- Aws::EC2::Instance.new i.instance_id, client: awsec2
23
- end.collect do |i|
24
- ips = [ i.public_ip_address ] + i.network_interfaces.collect(&:ipv_6_addresses).flatten.collect(&:ipv_6_address)
25
- "#{res.logical_resource_id.ljust(30, ' ')} '#{i.public_dns_name}' (#{ips.join(', ')})"
21
+ }).auto_scaling_groups.first
22
+ if asg.nil?
23
+ []
24
+ else
25
+ asg.instances.collect do |i|
26
+ Aws::EC2::Instance.new i.instance_id, client: awsec2
27
+ end.collect do |i|
28
+ ips = [ i.public_ip_address ] + i.network_interfaces.collect(&:ipv_6_addresses).flatten.collect(&:ipv_6_address)
29
+ "#{res.logical_resource_id.ljust(30, ' ')} '#{i.public_dns_name}' (#{ips.join(', ')})"
30
+ end
26
31
  end
27
32
  end
28
33
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-05 00:00:00.000000000 Z
11
+ date: 2018-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -192,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubyforge_project:
196
- rubygems_version: 2.7.8
195
+ rubygems_version: 3.0.1
197
196
  signing_key:
198
197
  specification_version: 4
199
198
  summary: A pre-compiler tool for CloudFormation YAML templates