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

Version Path
kontena-cli-1.3.0 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.rc4 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.rc3 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.pre2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.0.pre1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.2.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.2.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.1.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.rc3 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.pre3 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.pre2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.1.6 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.2.0.pre1 lib/kontena/cli/apps/show_command.rb