Sha256: 55d59de255d29e8275b4cd4be190ae03dd2f8244ed8800a8382fab788701d18e

Contents?: true

Size: 433 Bytes

Versions: 14

Compression:

Stored size: 433 Bytes

Contents

module Kontena::Cli::Certificate
  class RegisterCommand < Clamp::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions


    parameter "EMAIL", "Email to register"

    def execute
      require_api_url
      token = require_token

      data = {email: email}
      response = client(token).post("certificates/#{current_grid}/register", data)
      puts 'Email registered to LetsEncrypt'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.4 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.3 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.2 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.1 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.0 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/certificate/register_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/certificate/register_command.rb