# File lib/uri/scp.rb, line 20 20: def initialize(*args) 21: super(*args) 22: 23: @options = Hash.new 24: (query || "").split(/&/).each do |pair| 25: name, value = pair.split(/=/, 2) 26: opt_name = name.to_sym 27: values = value.split(/,/).map { |v| v.to_i.to_s == v ? v.to_i : v } 28: values = values.first if values.length == 1 29: options[opt_name] = values 30: end 31: end
# File lib/uri/open-scp.rb, line 8 8: def buffer_open(buf, proxy, open_options) 9: options = open_options.merge(:port => port, :password => password) 10: progress = options.delete(:progress_proc) 11: buf << Net::SCP.download!(host, user, path, nil, open_options, &progress) 12: buf.io.rewind 13: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.