Module: Makitzo::SSH::Commands::FileTransfer

Included in:
Makitzo::SSH::Context
Defined in:
lib/makitzo/ssh/commands/file_transfer.rb

Instance Method Summary collapse

Instance Method Details

#scp_upload(local_path, remote_path) ⇒ Object



3
4
5
6
7
# File 'lib/makitzo/ssh/commands/file_transfer.rb', line 3

def scp_upload(local_path, remote_path)
  logger.info "scp: '#{local_path}' -> '#{remote_path}'"
  scp = Net::SCP.new(connection)
  scp.upload!(local_path, remote_path)
end