Class: StackMaster::Commands::ListStacks

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

Instance Method Summary collapse

Methods included from TerminalHelper

#window_size

Methods included from StackMaster::Command

included, #success?

Constructor Details

#initialize(config) ⇒ ListStacks

Returns a new instance of ListStacks.



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

def initialize(config)
  @config = config
end

Instance Method Details

#performObject



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

def perform
  tp.set :max_width, self.window_size
  tp @config.stacks, :region, :stack_name
end