Sha256: 01f0ec8ea161fae2709ba88241798813482d3b36bbd5ee712fb0a5714ed444f5

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

module Percheron
  module Commands
    class Logs < Abstract

      parameter('STACK_NAME', 'stack name', required: true)
      parameter('UNIT_NAME', 'unit name', required: true)
      option([ '-f', '-t', '--follow', '--tail' ], :flag, 'Follow the logs', default: false)

      def execute
        super
        stack.logs!(unit_name, follow: follow?)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.8.1 lib/percheron/commands/logs.rb
percheron-0.8.0 lib/percheron/commands/logs.rb