Sha256: 3c4337a89f74f5f525c5cc93c42777924eb2016db23551fab270096cc6bd9e4e
Contents?: true
Size: 702 Bytes
Versions: 86
Compression:
Stored size: 702 Bytes
Contents
require_relative 'common' module Kontena::Cli::Apps class ShowCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Common option ['-f', '--file'], 'FILE', 'Specify an alternate Kontena compose file', attribute_name: :filename, default: 'kontena.yml' option ['-p', '--project-name'], 'NAME', 'Specify an alternate project name (default: directory name)' parameter "SERVICE", "Service to show" attr_reader :services def execute require_config_file(filename) token = require_token show_service(token, prefixed_name(service)) show_service_instances(token, prefixed_name(service)) end end end
Version data entries
86 entries across 86 versions & 2 rubygems