summaryrefslogtreecommitdiff
path: root/lib/net
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 /lib/net
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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/ftp.rb9
1 files changed, 9 insertions, 0 deletions
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?