Class: StackMaster::Commands::ListStacks

Inherits:
Object
  • Object
show all
Includes:
Commander::UI, StackMaster::Command
Defined in:
lib/stack_master/commands/list_stacks.rb

Instance Method Summary collapse

Methods included from StackMaster::Command

included

Constructor Details

#initialize(config) ⇒ ListStacks

Returns a new instance of ListStacks.



7
8
9
# File 'lib/stack_master/commands/list_stacks.rb', line 7

def initialize(config)
  @config = config
end

Instance Method Details

#performObject



11
12
13
# File 'lib/stack_master/commands/list_stacks.rb', line 11

def perform
  tp @config.stacks, :region, :stack_name
end