Class: Bcli::Commands::Login

Inherits:
Bcli::Command show all
Defined in:
lib/bcli/commands/login.rb

Instance Method Summary collapse

Methods inherited from Bcli::Command

#ask, #client, #config, #credentials, #download, #link_to, #logger, #open_in_browser, #parse_json, #pastel, #prompt

Instance Method Details

#execute(input: $stdin, output: $stdout) ⇒ Object



8
9
10
11
12
# File 'lib/bcli/commands/login.rb', line 8

def execute(input: $stdin, output: $stdout)
  set_email_and_password
  write_to_config_file
  output.puts pastel.green "Authenticated"
end