Sha256: 9e2956ac2c41ac54e8ae401c98ed41d1054e3bc0febf09e1b810948d5e1951a5
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
module Kontena::Cli::Containers class InspectCommand < Clamp::Command include Kontena::Cli::Common parameter "CONTAINER_ID", "Container id" def execute require_api_url token = require_token service_name = container_id.match(/(.+)-(\d+)/)[1] result = client(token).get("containers/#{current_grid}/#{service_name}/#{container_id}/inspect") puts JSON.pretty_generate(result) end end end
Version data entries
4 entries across 4 versions & 1 rubygems