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
krates-1.7.11 lib/kontena/cli/certificate/request_command.rb
krates-1.7.10 lib/kontena/cli/certificate/request_command.rb
krates-1.7.9 lib/kontena/cli/certificate/request_command.rb
krates-1.7.8 lib/kontena/cli/certificate/request_command.rb
krates-1.7.7 lib/kontena/cli/certificate/request_command.rb
krates-1.7.6 lib/kontena/cli/certificate/request_command.rb
krates-1.7.5 lib/kontena/cli/certificate/request_command.rb
krates-1.7.4 lib/kontena/cli/certificate/request_command.rb
krates-1.7.3 lib/kontena/cli/certificate/request_command.rb
krates-1.7.2 lib/kontena/cli/certificate/request_command.rb
krates-1.7.1 lib/kontena/cli/certificate/request_command.rb
krates-1.7.0 lib/kontena/cli/certificate/request_command.rb
krates-1.6.9 lib/kontena/cli/certificate/request_command.rb
krates-1.6.8 lib/kontena/cli/certificate/request_command.rb
krates-1.6.7 lib/kontena/cli/certificate/request_command.rb
krates-1.6.6 lib/kontena/cli/certificate/request_command.rb
krates-1.6.5 lib/kontena/cli/certificate/request_command.rb
krates-1.6.4 lib/kontena/cli/certificate/request_command.rb
krates-1.6.3 lib/kontena/cli/certificate/request_command.rb
krates-1.6.2 lib/kontena/cli/certificate/request_command.rb