mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/ftp.rb (noop): new method.
* lib/net/ftp.rb (site): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec16af8173
commit
a5fd4cec84
2 changed files with 15 additions and 0 deletions
|
@ -563,6 +563,15 @@ module Net
|
|||
def quit
|
||||
voidcmd("QUIT")
|
||||
end
|
||||
|
||||
def noop
|
||||
voidcmd("NOOP")
|
||||
end
|
||||
|
||||
def site(arg)
|
||||
cmd = "SITE " + arg
|
||||
voidcmd(cmd)
|
||||
end
|
||||
|
||||
def close
|
||||
@sock.close if @sock and not @sock.closed?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue