Class: Percheron::Commands::List
- Defined in:
- lib/percheron/commands/list.rb
Instance Method Summary collapse
Methods inherited from Abstract
#config, default_parameters!, #runit, #stack
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/percheron/commands/list.rb', line 7 def execute Stack.get(config, stack_name).each do |_, stack| begin stack.valid? puts("\n", Percheron::Formatters::Stack::Table.new(stack).generate) rescue Percheron::Errors::StackInvalid => e signal_usage_error(e.) end end end |