Skip to content

Commit

Permalink
more documentation, to make the ri docs more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Mar 14, 2008
1 parent ebf5d53 commit 8a162ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
pkg
doc
coverage
ri
9 changes: 8 additions & 1 deletion lib/net/sftp.rb
Expand Up @@ -2,7 +2,14 @@
require 'net/sftp/session'

module Net


# Net::SFTP is a pure-Ruby module for programmatically interacting with a
# remote host via the SFTP protocol (that's SFTP as in "Secure File Transfer
# Protocol" produced by the Secure Shell Working Group, not "Secure FTP"
# and certainly not "Simple FTP").
#
# See Net::SFTP#start for an introduction to the library. Also, see
# Net::SFTP::Session for further documentation.
module SFTP
# A convenience method for starting a standalone SFTP session. It will
# start up an SSH session using the given arguments (see the documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/net/sftp/session.rb
Expand Up @@ -109,7 +109,7 @@ def upload!(local, remote, options={}, &block)
# Net::SFTP::Operations::Download for a full discussion of hos this method can be
# used.
#
# download = sftp.downnload("/remote/path", "/local/path")
# download = sftp.download("/remote/path", "/local/path")
# download.wait
def download(remote, local, options={}, &block)
Operations::Download.new(self, local, remote, options, &block)
Expand Down

0 comments on commit 8a162ed

Please sign in to comment.