Sha256: 36a39dd72b076c1832c00491f8f9b5f7091457dd67690ed7b4238eb827d1721f

Contents?: true

Size: 386 Bytes

Versions: 26

Compression:

Stored size: 386 Bytes

Contents

class Kontena::Cli::ForgotPasswordCommand < Clamp::Command
  include Kontena::Cli::Common

  parameter "EMAIL", "Email address"

  def execute
    require_api_url

    params = {email: email}
    client.post('user/password_reset', params)
    puts 'Email with password reset instructions is sent to your email address. Please follow the instructions to change your password.'
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kontena-cli-0.12.3 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.12.2 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.12.1 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.12.0 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.7 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.6 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.5 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.4 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.3 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.2 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.1 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.11.0 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.10.3 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.10.2 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.10.1 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.10.0 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.9.3 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.9.2 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.9.1 lib/kontena/cli/forgot_password_command.rb
kontena-cli-0.9.0 lib/kontena/cli/forgot_password_command.rb