Top Level Namespace
Defined Under Namespace
Modules: Net
Instance Method Summary collapse
Instance Method Details
#get_command ⇒ Object
3257 3258 3259 3260 3261 3262 3263 3264 |
# File 'lib/net/imap.rb', line 3257 def get_command printf("%s@%s> ", $user, $host) if line = gets return line.strip.split(/\s+/) else return nil end end |
#get_password ⇒ Object
3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 |
# File 'lib/net/imap.rb', line 3246 def get_password print "password: " system("stty", "-echo") begin return gets.chop ensure system("stty", "echo") print "\n" end end |
#usage ⇒ Object
3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 |
# File 'lib/net/imap.rb', line 3234 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 |