knuckle_cluster 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/knuckle_cluster/asg_instance_registry.rb +5 -0
- data/lib/knuckle_cluster/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7a0dd836d8eefb37421b1175b18d015bd10937
|
4
|
+
data.tar.gz: 75d8bc71322dd8f75fe3dbf328c9310900ce5d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37ce827c3b94c732e34de888ca37b2657a74c62d589d3fff8c273d72465c3bde4a28df293b3a2bddb56a3ab2b64b1a5517e1061c7b5d33dd55c8022bc3828d6
|
7
|
+
data.tar.gz: 459afa76e9844bba56278658496a34ff5c5255bfaf41d7179d37a027edac822e848abf73c15721c3358565ca0bf10daf96aa9f7a1926ebd9d345c9179be694a5
|
@@ -31,6 +31,11 @@ module KnuckleCluster
|
|
31
31
|
def load_agents
|
32
32
|
auto_scaling_instances = autoscaling_client.describe_auto_scaling_groups(auto_scaling_group_names: [@asg_name]).to_h
|
33
33
|
|
34
|
+
if auto_scaling_instances[:auto_scaling_groups].empty?
|
35
|
+
puts "Could not find auto scaling group '#{asg_name}' in region #{aws_client_config[:region]}."
|
36
|
+
exit(0)
|
37
|
+
end
|
38
|
+
|
34
39
|
instance_ids = auto_scaling_instances[:auto_scaling_groups][0][:instances].map{|instance| instance[:instance_id]}
|
35
40
|
|
36
41
|
instance_reservations = ec2_client.describe_instances(instance_ids: instance_ids).reservations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knuckle_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|