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