--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: 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. This will block until the new SFTP is fully open and initialized before returning it.
- !ruby/struct:SM::Flow::VERB 
  body: "  sftp = Net::SFTP.start(&quot;localhost&quot;, &quot;user&quot;)\n  sftp.upload! &quot;/local/file.tgz&quot;, &quot;/remote/file.tgz&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: If a block is given, it will be passed to the SFTP session and will be called once the SFTP session is fully open and initialized. When the block terminates, the new SSH session will automatically be closed.
- !ruby/struct:SM::Flow::VERB 
  body: "  Net::SFTP.start(&quot;localhost&quot;, &quot;user&quot;) do |sftp|\n    sftp.upload! &quot;/local/file.tgz&quot;, &quot;/remote/file.tgz&quot;\n  end\n"
full_name: Net::SFTP::start
is_singleton: true
name: start
params: (host, user, options={}, &block)
visibility: public
