Sha256: e9ec2f8093b61b03fd72145b2365be63a92df41598226a51835f4af44a31c3fb

Contents?: true

Size: 439 Bytes

Versions: 86

Compression:

Stored size: 439 Bytes

Contents

require_relative '../helpers/log_helper'

module Kontena::Cli::Containers
  class LogsCommand < Clamp::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Kontena::Cli::Helpers::LogHelper

    parameter "CONTAINER_ID", "Container id"

    def execute
      require_api_url

      show_logs("containers/#{current_grid}/#{container_id}/logs") do |log|
        show_log(log)
      end
    end
  end
end

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/containers/logs_command.rb
krates-1.7.10 lib/kontena/cli/containers/logs_command.rb
krates-1.7.9 lib/kontena/cli/containers/logs_command.rb
krates-1.7.8 lib/kontena/cli/containers/logs_command.rb
krates-1.7.7 lib/kontena/cli/containers/logs_command.rb
krates-1.7.6 lib/kontena/cli/containers/logs_command.rb
krates-1.7.5 lib/kontena/cli/containers/logs_command.rb
krates-1.7.4 lib/kontena/cli/containers/logs_command.rb
krates-1.7.3 lib/kontena/cli/containers/logs_command.rb
krates-1.7.2 lib/kontena/cli/containers/logs_command.rb
krates-1.7.1 lib/kontena/cli/containers/logs_command.rb
krates-1.7.0 lib/kontena/cli/containers/logs_command.rb
krates-1.6.9 lib/kontena/cli/containers/logs_command.rb
krates-1.6.8 lib/kontena/cli/containers/logs_command.rb
krates-1.6.7 lib/kontena/cli/containers/logs_command.rb
krates-1.6.6 lib/kontena/cli/containers/logs_command.rb
krates-1.6.5 lib/kontena/cli/containers/logs_command.rb
krates-1.6.4 lib/kontena/cli/containers/logs_command.rb
krates-1.6.3 lib/kontena/cli/containers/logs_command.rb
krates-1.6.2 lib/kontena/cli/containers/logs_command.rb