Sha256: b784599f36d2091eea691c402fe12269bc012aa2be6c63bd0d1b9f1b521a1195

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 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_name, stack|
          puts
          puts Percheron::Formatters::Stack::Table.new(stack).generate
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
percheron-0.6.4 lib/percheron/commands/list.rb
percheron-0.6.3 lib/percheron/commands/list.rb
percheron-0.6.2 lib/percheron/commands/list.rb
percheron-0.6.1 lib/percheron/commands/list.rb