Class: SSHKit::Backend::Netssh::ScpTransfer

Inherits:
Object
  • Object
show all
Defined in:
lib/sshkit/backends/netssh/scp_transfer.rb

Instance Method Summary collapse

Constructor Details

#initialize(ssh, summarizer) ⇒ ScpTransfer

Returns a new instance of ScpTransfer.



7
8
9
10
# File 'lib/sshkit/backends/netssh/scp_transfer.rb', line 7

def initialize(ssh, summarizer)
  @ssh = ssh
  @summarizer = summarizer
end

Instance Method Details

#download!(remote, local, options) ⇒ Object



16
17
18
# File 'lib/sshkit/backends/netssh/scp_transfer.rb', line 16

def download!(remote, local, options)
  ssh.scp.download!(remote, local, options, &summarizer)
end

#upload!(local, remote, options) ⇒ Object



12
13
14
# File 'lib/sshkit/backends/netssh/scp_transfer.rb', line 12

def upload!(local, remote, options)
  ssh.scp.upload!(local, remote, options, &summarizer)
end