Sha256: a4025b9f89f84e14eafd8e4b09e86967218178552f4499aebbae58c680c95855

Contents?: true

Size: 621 Bytes

Versions: 22

Compression:

Stored size: 621 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Apps
  class ShowCommand < Clamp::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)

      show_service(require_token, prefixed_name(service))
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.4 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.3 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.2 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.1 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.0 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.7 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.6 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.5 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.4 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.3 lib/kontena/cli/apps/show_command.rb
kontena-cli-0.14.2 lib/kontena/cli/apps/show_command.rb