Class: Lono::Sets::List

Inherits:
Object
  • Object
show all
Includes:
AwsServices
Defined in:
lib/lono/sets/list.rb

Instance Method Summary collapse

Methods included from AwsServices

#cfn, #ec2, #iam, #s3, #s3_presigner, #s3_resource, #sts

Methods included from AwsServices::Helper

#rollback_complete?, #testing_update?

Methods included from AwsServices::StackSet

#find_stack_set, #stack_set_exists?

Methods included from AwsServices::Stack

#find_stack, #stack_exists?

Constructor Details

#initialize(options = {}) ⇒ List

Returns a new instance of List.



7
8
9
# File 'lib/lono/sets/list.rb', line 7

def initialize(options={})
  @options = options
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
# File 'lib/lono/sets/list.rb', line 11

def run
  table = Text::Table.new
  table.head = ["Stack Set Name", "Status"]
  summaries = stack_sets_summaries
  summaries.each do |s|
    table.rows << [s.stack_set_name, s.status]
  end
  puts table
end