autocanary24 0.1.1 → 0.1.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 +4 -4
- data/lib/autocanary24/canarystack.rb +8 -2
- data/lib/autocanary24/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 875eca9b01aebfa2c37e85e05668bfc2560ff360
|
|
4
|
+
data.tar.gz: 2ec3d9b1fa418959295202d1485141a4c0acc14d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3eff675c78759f4a5e637dbd18c186405e43433e58bfb1d2644702fb55bd6d1cef2e040e13c20ed2d1b272b2bbc32ea2929002f75e14e7571e46c4dcbc4957d
|
|
7
|
+
data.tar.gz: 5ebfd37f5539c35187d911c91cbf1e9adc3d34f1d4e5f532aee13adab83312c4a4ef5cc783b3a5e0c3702da2560a04983213c730e3179b397b58539ffc79af83
|
|
@@ -96,7 +96,10 @@ module AutoCanary24
|
|
|
96
96
|
puts "WARNING: ASG still on the ELB!"
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
instances = auto_scaling_group[:instances]
|
|
99
|
+
instances = auto_scaling_group[:instances] \
|
|
100
|
+
.select { |i| i[:lifecycle_state]=="InService" } \
|
|
101
|
+
.map{ |i| { instance_id: i[:instance_id] } }
|
|
102
|
+
|
|
100
103
|
wait_for_instances_detached_from_elb(instances, elb)
|
|
101
104
|
end
|
|
102
105
|
|
|
@@ -123,7 +126,10 @@ module AutoCanary24
|
|
|
123
126
|
puts "WARNING: ASG not on the ELB yet!"
|
|
124
127
|
end
|
|
125
128
|
|
|
126
|
-
instances = auto_scaling_group[:instances]
|
|
129
|
+
instances = auto_scaling_group[:instances] \
|
|
130
|
+
.select { |i| i[:lifecycle_state]=="InService" } \
|
|
131
|
+
.map{ |i| { instance_id: i[:instance_id] } }
|
|
132
|
+
|
|
127
133
|
wait_for_instances_attached_to_elb(instances, elb)
|
|
128
134
|
end
|
|
129
135
|
|
data/lib/autocanary24/version.rb
CHANGED