Class: SSHKit::Backend::Netssh::ScpTransfer
- Inherits:
-
Object
- Object
- SSHKit::Backend::Netssh::ScpTransfer
- Defined in:
- lib/sshkit/backends/netssh/scp_transfer.rb
Instance Method Summary collapse
- #download!(remote, local, options) ⇒ Object
-
#initialize(ssh, summarizer) ⇒ ScpTransfer
constructor
A new instance of ScpTransfer.
- #upload!(local, remote, options) ⇒ Object
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, ) ssh.scp.download!(remote, local, , &summarizer) end |
#upload!(local, remote, options) ⇒ Object
12 13 14 |
# File 'lib/sshkit/backends/netssh/scp_transfer.rb', line 12 def upload!(local, remote, ) ssh.scp.upload!(local, remote, , &summarizer) end |