cloudformation-tool 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_formation_tool/cli/servers.rb +5 -2
- data/lib/cloud_formation_tool/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: 35d1d6a119c8dd62db646b78a1f9859b441573b0
|
4
|
+
data.tar.gz: fbc546ea971958148e264a9779ee3423bd1537e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9ecbda94ac37c11b04da5f011692d5b5e53255b2fadb51e71aec2c3d74498561aebdca42c13a0a4c4d149a61637512c939099408f7dc6eded95747c9cfd370a
|
7
|
+
data.tar.gz: c270096217da50f41757a76a3586a2fe39df2651af707363e31fd45ff3b6a5cc2fc471686b6af9e1e4ffc29c79a92455618b6a616b9629da3842246f3ff1b653
|
@@ -6,11 +6,14 @@ module CloudFormationTool
|
|
6
6
|
class Servers < Clamp::Command
|
7
7
|
include CloudFormationTool
|
8
8
|
|
9
|
-
parameter "STACK_NAME", "Name of the stack to
|
9
|
+
parameter "STACK_NAME", "Name of the stack to list servers for"
|
10
|
+
parameter "[ASG_NAME]", "Select only this specific auto scaling group"
|
10
11
|
|
11
12
|
def execute
|
12
13
|
st = CloudFormation::Stack.new(stack_name)
|
13
|
-
ts = st.asgroups.
|
14
|
+
ts = st.asgroups.select do |res|
|
15
|
+
asg_name.nil? or (res.logical_resource_id == asg_name)
|
16
|
+
end.collect do |res|
|
14
17
|
Thread.new do
|
15
18
|
awsas.describe_auto_scaling_groups({
|
16
19
|
auto_scaling_group_names: [ res.physical_resource_id ]
|