Method: Logcli::SCP#download
- Defined in:
- lib/logcli/scp.rb
#download(remote_path, local_dest) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/logcli/scp.rb', line 8 def download remote_path, local_dest Net::SCP.start(*params.scp_args) do |scp| scp.download remote_path, local_dest do |ch, name, sent, total| puts "#{name}: #{sent}/#{total}" end end end |