diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-11 04:20:11 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-11 04:20:11 +0000 |
commit | e0e6213157a34e1cbbd134196990b288fa0a6fff (patch) | |
tree | fd0752fa69e1a2f15ecd80c4094c69628fff02d0 | |
parent | 0abe11a7e4f70b01e0792d0be21bd43b171b3157 (diff) | |
download | ruby-e0e6213157a34e1cbbd134196990b288fa0a6fff.tar.gz ruby-e0e6213157a34e1cbbd134196990b288fa0a6fff.tar.xz ruby-e0e6213157a34e1cbbd134196990b288fa0a6fff.zip |
* lib/net/ftp.rb (noop): new method.
* lib/net/ftp.rb (site): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/net/ftp.rb | 9 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Jun 11 13:18:47 2002 Shugo Maeda <shugo@ruby-lang.org> + + * lib/net/ftp.rb (noop): new method. + + * lib/net/ftp.rb (site): ditto. + Tue Jun 11 13:15:41 2002 NAKAMURA Usaku <usa@ruby-lang.org> * bcc32/Makefile.sub: set PROCESSOR_LEVEL to 6 if it's too big value. diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 88361b9dd..d76cb615f 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -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? |