Class: CloudFormationTool::CLI::ListStacks

Inherits:
Clamp::Command
  • Object
show all
Includes:
CloudFormationTool
Defined in:
lib/cloud_formation_tool/cli/list_stacks.rb

Constant Summary

Constants included from CloudFormationTool

VERSION

Instance Method Summary collapse

Methods included from CloudFormationTool

#aws_config, #awsas, #awscdn, #awscf, #awscreds, #awsec2, #awsecs, #awss3, #cf_bucket_name, #find_profile, #profile, #region, #s3_bucket_name

Instance Method Details

#executeObject



7
8
9
10
11
# File 'lib/cloud_formation_tool/cli/list_stacks.rb', line 7

def execute
  awscf.describe_stacks.stacks.each do |stack|
    puts stack.stack_name.ljust(30,' ') + stack.stack_status
  end
end