summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-11 04:20:11 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-11 04:20:11 +0000
commita5fd4cec841d2ae50d2aaff8f564da4842d0984c (patch)
treefd0752fa69e1a2f15ecd80c4094c69628fff02d0
parentec16af81733434c2be946c72bd56744229716844 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--lib/net/ftp.rb9
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cdba1078a..c671f625f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 88361b9ddb..d76cb615f4 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?