Sha256: 4003ec8a301a40d357721eec82c66202cb67094b87cf0ac4237c86aa7122b12d
Contents?: true
Size: 374 Bytes
Versions: 20
Compression:
Stored size: 374 Bytes
Contents
require 'io/console' class UserProvider requires :command def value name = get_name password = get_password Map name: name, password: password end private def get_name command.output.print "Username: " command.input.gets.chomp end def get_password command.output.print "Password: " command.input.noecho(&:gets).chomp end end
Version data entries
20 entries across 20 versions & 1 rubygems