Sha256: 51feeb4b1b9b92c7660527e89de7c1f0bab64d40e9013d3e19713a784f87e376
Contents?: true
Size: 422 Bytes
Versions: 75
Compression:
Stored size: 422 Bytes
Contents
require 'open-uri' require 'uri/scp' require 'net/scp' OpenURI::Options[:ssh] = nil module URI class SCP def buffer_open(buf, proxy, open_options) options = open_options.merge(:port => port, :password => password) progress = options.delete(:progress_proc) buf << Net::SCP.download!(host, user, path, nil, options, &progress) buf.io.rewind end include OpenURI::OpenRead end end
Version data entries
75 entries across 57 versions & 6 rubygems