sul-dlss/sdr-client

View on GitHub
lib/sdr_client/login_prompt.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
27%
# frozen_string_literal: true

module SdrClient
  # The namespace for the "login" command
  module LoginPrompt
    def self.run
      print 'Email: '
      email = gets
      email.strip!
      print 'Password: '
      password = $stdin.noecho(&:gets)
      password.strip!
      puts
      { email: email, password: password }
    end
  end
end