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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b9a55942c8ef97e28d00e28e635d2d7a646292
4
- data.tar.gz: 1b7bfc3d3db73cfda536cfec4e595d67dab21bbd
3
+ metadata.gz: 35d1d6a119c8dd62db646b78a1f9859b441573b0
4
+ data.tar.gz: fbc546ea971958148e264a9779ee3423bd1537e5
5
5
  SHA512:
6
- metadata.gz: f2f44a0c8577dc7a91d4b65f29ce4c13d74efdfb8aa89fd9c576f5ac5a2cb32e057bf741f5d41fac0a8ab8e57d36a194254b3e11ec7524a4661685dfcd6fc5b5
7
- data.tar.gz: 6e5c7da94f267b05b0e248b1dd13944069fed53505d176041398bfea5f7b7902a794cd4c8b9022b954fd1b3064aa278daf7a0aef413d534778f8dd27301e2b92
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 delete"
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.collect do |res|
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 ]
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '0.1.2'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel