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.5 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/apps/show_command.rb
kontena-plugin-app-command-0.1.0 lib/kontena/cli/apps/show_command.rb
kontena-plugin-app-command-0.1.0.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre6 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre5 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre4 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre3 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.4.0.pre1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.4 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.4.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.3 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.3.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.2.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.2.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.1 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.1.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-1.3.1.rc1 lib/kontena/cli/apps/show_command.rb