Sha256: 2cba545394938b2e58a0fc94900db80aeec79a6e2b2c4bb56af1cccc3dbed626
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
require 'io/console' class LoginInformationProvider requires :command requires :configuration def value name = get_name password = get_password region = get_default_region Map name: name, password: password, region: region end private def get_name command.output.print "Username: " command.input.gets.chomp end def get_password command.output.print "Password: " password = command.input.noecho(&:gets).chomp command.output.print "\n" password end def get_default_region command.output.print "Default Region (Enter for #{configuration.region}): " region = command.input.gets.chomp region.empty? ? configuration.region : region end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rumm-0.1.0 | app/providers/login_information_provider.rb |
rumm-0.0.24 | app/providers/login_information_provider.rb |