Module: SdrClient::LoginPrompt

Defined in:
lib/sdr_client/login_prompt.rb

Overview

The namespace for the “login” command

Class Method Summary collapse

Class Method Details

.runObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/sdr_client/login_prompt.rb', line 8

def self.run
  print 'Email: '
  email = gets
  email.strip!
  print 'Password: '
  password = $stdin.noecho(&:gets)
  password.strip!
  puts
  { email: email, password: password }
end