Sha256: 6a6658f10c35bd61c64b1a9c5614b61de4c28dfaedda5e3027b15d5783c1faca
Contents?: true
Size: 486 Bytes
Versions: 41
Compression:
Stored size: 486 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "highline/import" tounge_twister = ask("... try saying that three times fast") do |q| q.gather = 3 q.verify_match = true q.responses[:mismatch] = "Nope, those don't match. Try again." end puts "Ok, you did it." pass = ask("<%= @key %>: ") do |q| q.echo = '*' q.verify_match = true q.gather = {"Enter a password" => '', "Please type it again for verification" => ''} end puts "Your password is now #{pass}!"
Version data entries
41 entries across 41 versions & 7 rubygems