Sha256: 6006007778bcd72f4ecf94f9b7482d4f2fd0233bc91b48356b07b9272970ae30

Contents?: true

Size: 512 Bytes

Versions: 42

Compression:

Stored size: 512 Bytes

Contents

require_relative '../services/services_helper'
require_relative './common'

module Kontena::Cli::Certificate
  class ShowCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Common

    parameter "SUBJECT", "Certificate subject"

    requires_current_master
    requires_current_master_token
    requires_current_grid

    def execute
      cert = client.get("certificates/#{current_grid}/#{self.subject}")

      show_certificate(cert)
    end
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/certificate/show_command.rb
krates-1.7.10 lib/kontena/cli/certificate/show_command.rb
krates-1.7.9 lib/kontena/cli/certificate/show_command.rb
krates-1.7.8 lib/kontena/cli/certificate/show_command.rb
krates-1.7.7 lib/kontena/cli/certificate/show_command.rb
krates-1.7.6 lib/kontena/cli/certificate/show_command.rb
krates-1.7.5 lib/kontena/cli/certificate/show_command.rb
krates-1.7.4 lib/kontena/cli/certificate/show_command.rb
krates-1.7.3 lib/kontena/cli/certificate/show_command.rb
krates-1.7.2 lib/kontena/cli/certificate/show_command.rb
krates-1.7.1 lib/kontena/cli/certificate/show_command.rb
krates-1.7.0 lib/kontena/cli/certificate/show_command.rb
krates-1.6.9 lib/kontena/cli/certificate/show_command.rb
krates-1.6.8 lib/kontena/cli/certificate/show_command.rb
krates-1.6.7 lib/kontena/cli/certificate/show_command.rb
krates-1.6.6 lib/kontena/cli/certificate/show_command.rb
krates-1.6.5 lib/kontena/cli/certificate/show_command.rb
krates-1.6.4 lib/kontena/cli/certificate/show_command.rb
krates-1.6.3 lib/kontena/cli/certificate/show_command.rb
krates-1.6.2 lib/kontena/cli/certificate/show_command.rb