Sha256: 0c0c446935e47425d8b8b747f6622d0e74b075d837f4b91ed99e158272825186

Contents?: true

Size: 514 Bytes

Versions: 53

Compression:

Stored size: 514 Bytes

Contents

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

    parameter "DOMAIN ...", "Domain(s) to get certificate for"

    def execute
      require_api_url
      token = require_token
      data = {domains: domain_list}

      spinner "Requesting certificate for #{domain_list.join(',').colorize(:cyan)} " do
        response = client(token).post("grids/#{current_grid}/certificates", data)
      end

    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
kontena-cli-1.4.1.rc1 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/certificate/request_command.rb
kontena-cli-1.4.0.pre7 lib/kontena/cli/certificate/request_command.rb