Class: Yadecli::Command::LoginCommand

Inherits:
Mutations::Command
  • Object
show all
Defined in:
lib/yadecli/command/login_command.rb

Overview

login

Instance Method Summary collapse

Instance Method Details

#executeObject



17
18
19
20
21
22
23
# File 'lib/yadecli/command/login_command.rb', line 17

def execute
  authentication_client = Yade::Common::Client::AuthenticationClient.new

  authentication = authentication_client.(auth_url, auth_username, auth_password)

  "Successfully logged in user #{authentication.auth_username} with password *** at uaa #{authentication.auth_url}"
end