Class: StackMaster::Commands::ListStacks
- Inherits:
-
Object
- Object
- StackMaster::Commands::ListStacks
- Includes:
- Commander::UI, StackMaster::Command, TerminalHelper
- Defined in:
- lib/stack_master/commands/list_stacks.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ ListStacks
constructor
A new instance of ListStacks.
- #perform ⇒ Object
Methods included from TerminalHelper
#unix_window_size, #window_size, #windows_window_size
Methods included from StackMaster::Command
Constructor Details
#initialize(config) ⇒ ListStacks
Returns a new instance of ListStacks.
10 11 12 |
# File 'lib/stack_master/commands/list_stacks.rb', line 10 def initialize(config) @config = config end |
Instance Method Details
#perform ⇒ Object
14 15 16 17 |
# File 'lib/stack_master/commands/list_stacks.rb', line 14 def perform tp.set :max_width, self.window_size tp @config.stacks, :region, :stack_name end |