Sha256: 628b502546e380dda9f8138f69c07109b4196329588f5f59bd96ac5eeb4af25b

Contents?: true

Size: 404 Bytes

Versions: 136

Compression:

Stored size: 404 Bytes

Contents

module Kontena::Cli::Containers
  class InspectCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions

    parameter "CONTAINER_ID", "Container id"

    def execute
      require_api_url
      token = require_token

      result = client(token).get("containers/#{current_grid}/#{container_id}/inspect")
      puts JSON.pretty_generate(result)
    end
  end
end

Version data entries

136 entries across 136 versions & 2 rubygems

Version Path
krates-1.6.1 lib/kontena/cli/containers/inspect_command.rb
krates-1.6.0 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.4 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.4.rc1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.3 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.2 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.rc1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.pre5 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.pre4 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.pre3 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.pre2 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.5.0.pre1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.3 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.3.rc1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.2 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.2.rc1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.2.pre1 lib/kontena/cli/containers/inspect_command.rb
kontena-cli-1.4.1 lib/kontena/cli/containers/inspect_command.rb