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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: A convenience method for starting up a new SFTP connection on the current SSH session. Blocks until the SFTP session is fully open, and then returns the SFTP session.
- !ruby/struct:SM::Flow::VERB 
  body: "  Net::SSH.start(&quot;localhost&quot;, &quot;user&quot;, &quot;password&quot;) do |ssh|\n    ssh.sftp.upload!(&quot;/local/file.tgz&quot;, &quot;/remote/file.tgz&quot;)\n    ssh.exec! &quot;cd /some/path &amp;&amp; tar xf /remote/file.tgz &amp;&amp; rm /remote/file.tgz&quot;\n  end\n"
full_name: Net::SSH::Connection::Session#sftp
is_singleton: false
name: sftp
params: (wait=true)
visibility: public
