Method: Net::SFTP::Session#close_channel
- Defined in:
- lib/net/sftp/session.rb
#close_channel ⇒ Object
Closes the SFTP connection, but not the SSH connection. Blocks until the session has terminated. Once the session has terminated, further operations on this object will result in errors. You can reopen the SFTP session via the #connect method.
729 730 731 732 733 |
# File 'lib/net/sftp/session.rb', line 729 def close_channel return unless open? channel.close loop { !closed? } end |