Sha256: 093afbb67d8287b4c207da1802e74213aae8d55fb9c01ec9f3829b0b76a1e1f4

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

# 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sdr-client-2.18.0 lib/sdr_client/login_prompt.rb
sdr-client-2.17.0 lib/sdr_client/login_prompt.rb
sdr-client-2.16.0 lib/sdr_client/login_prompt.rb
sdr-client-2.13.2 lib/sdr_client/login_prompt.rb
sdr-client-2.13.1 lib/sdr_client/login_prompt.rb
sdr-client-2.13.0 lib/sdr_client/login_prompt.rb
sdr-client-2.13.0.beta2 lib/sdr_client/login_prompt.rb
sdr-client-2.13.0.beta1 lib/sdr_client/login_prompt.rb
sdr-client-2.12.0 lib/sdr_client/login_prompt.rb
sdr-client-2.11.1 lib/sdr_client/login_prompt.rb