Class: Net::SSH::Connection::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/net/scp.rb

Instance Method Summary collapse

Instance Method Details

#scpObject

Provides a convenient way to initialize a SCP session given a Net::SSH session. Returns the Net::SCP instance, ready to use.



445
446
447
# File 'lib/net/scp.rb', line 445

def scp
  @scp ||= Net::SCP.new(self)
end