Sha256: 0c5198c874512f0fb2f8a8decfab71073760cb3e76c2b20194deeb50d9cd388f

Contents?: true

Size: 368 Bytes

Versions: 139

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

require 'io/console'

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

139 entries across 139 versions & 1 rubygems

Version Path
sdr-client-2.11.0 lib/sdr_client/login_prompt.rb
sdr-client-2.10.1 lib/sdr_client/login_prompt.rb
sdr-client-2.10.0 lib/sdr_client/login_prompt.rb
sdr-client-2.9.0 lib/sdr_client/login_prompt.rb
sdr-client-2.8.0 lib/sdr_client/login_prompt.rb
sdr-client-2.7.1 lib/sdr_client/login_prompt.rb
sdr-client-2.7.0 lib/sdr_client/login_prompt.rb
sdr-client-2.6.0 lib/sdr_client/login_prompt.rb
sdr-client-2.5.0 lib/sdr_client/login_prompt.rb
sdr-client-2.4.0 lib/sdr_client/login_prompt.rb
sdr-client-2.3.1 lib/sdr_client/login_prompt.rb
sdr-client-2.3.0 lib/sdr_client/login_prompt.rb
sdr-client-2.2.0 lib/sdr_client/login_prompt.rb
sdr-client-2.1.0 lib/sdr_client/login_prompt.rb
sdr-client-2.0.1 lib/sdr_client/login_prompt.rb
sdr-client-2.0.0 lib/sdr_client/login_prompt.rb
sdr-client-1.0.0 lib/sdr_client/login_prompt.rb
sdr-client-0.97.0 lib/sdr_client/login_prompt.rb
sdr-client-0.96.0 lib/sdr_client/login_prompt.rb
sdr-client-0.95.0 lib/sdr_client/login_prompt.rb