Sha256: ff264b0246f05b037823c6c63abf3ef4e84f86b8a789f44a455f763ef5316e76

Contents?: true

Size: 470 Bytes

Versions: 19

Compression:

Stored size: 470 Bytes

Contents

module Percheron
  module Commands
    class List < Abstract

      parameter('STACK_NAME', 'stack name', required: false)

      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.message)
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
percheron-0.8.1 lib/percheron/commands/list.rb
percheron-0.8.0 lib/percheron/commands/list.rb
percheron-0.7.16 lib/percheron/commands/list.rb
percheron-0.7.15 lib/percheron/commands/list.rb
percheron-0.7.14 lib/percheron/commands/list.rb
percheron-0.7.13 lib/percheron/commands/list.rb
percheron-0.7.12 lib/percheron/commands/list.rb
percheron-0.7.11 lib/percheron/commands/list.rb
percheron-0.7.10 lib/percheron/commands/list.rb
percheron-0.7.9 lib/percheron/commands/list.rb
percheron-0.7.8 lib/percheron/commands/list.rb
percheron-0.7.7 lib/percheron/commands/list.rb
percheron-0.7.6 lib/percheron/commands/list.rb
percheron-0.7.5 lib/percheron/commands/list.rb
percheron-0.7.4 lib/percheron/commands/list.rb
percheron-0.7.3 lib/percheron/commands/list.rb
percheron-0.7.2 lib/percheron/commands/list.rb
percheron-0.7.1 lib/percheron/commands/list.rb
percheron-0.7.0 lib/percheron/commands/list.rb