Methods
Classes and Modules
Module Net::SFTP::Operations
Module Net::SFTP::Protocol
Module Net::SFTP::Version
Class Net::SFTP::Bug
Class Net::SFTP::Exception
Class Net::SFTP::Session
Public Instance methods
start( *args, &block )

A convenience method for starting a standalone SFTP session. It will start up an SSH session using the given arguments (see the documentation for Net::SSH::Session for details), and will then start a new SFTP session with the SSH session. If a block is given, it will be passed to the SFTP session.

    # File lib/net/sftp.rb, line 27
27:   def start( *args, &block )
28:     session = Net::SSH.start( *args )
29:     Net::SFTP::Session.new( session, &block )
30:   ensure
31:     session.close if session && block_given?
32:   end