Top Level Namespace
Defined Under Namespace
Modules: Net
Instance Method Summary collapse
Instance Method Details
#get_command ⇒ Object
3255 3256 3257 3258 3259 3260 3261 3262 |
# File 'lib/net/imap.rb', line 3255 def get_command printf("%s@%s> ", $user, $host) if line = gets return line.strip.split(/\s+/) else return nil end end |
#get_password ⇒ Object
3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 |
# File 'lib/net/imap.rb', line 3244 def get_password print "password: " system("stty", "-echo") begin return gets.chop ensure system("stty", "echo") print "\n" end end |
#usage ⇒ Object
3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 |
# File 'lib/net/imap.rb', line 3232 def usage $stderr.print <<EOF usage: #{$0} [options] <host> --help print this message --port=PORT specifies port --user=USER specifies user --auth=AUTH specifies auth type --ssl use ssl EOF end |