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

Version Path
net-scp-4.0.1.rc3 lib/uri/open-scp.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/net-scp-4.0.0/lib/uri/open-scp.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/net-scp-4.0.0/lib/uri/open-scp.rb
net-scp-4.0.0 lib/uri/open-scp.rb
net-scp-4.0.0.rc1 lib/uri/open-scp.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/net-scp-3.0.0/lib/uri/open-scp.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/net-scp-3.0.0/lib/uri/open-scp.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
net-scp-3.0.0 lib/uri/open-scp.rb
net-scp-3.0.0.rc1 lib/uri/open-scp.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/net-scp-2.0.0/lib/uri/open-scp.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/net-scp-1.2.1/lib/uri/open-scp.rb