I had some trouble trying to make rubyforge command work through proxy. The Rubyforge::Client::initialize takes a proxy url as parameter but does not actually seem to use it...
So i finally came to this workaround:
def initialize(proxy = nil)
@debug_dev = nil
@ssl_verify_mode = OpenSSL::SSL::VERIFY_NONE
@cookie_manager = CookieManager.new
if proxy
proxy_uri = URI.parse(proxy)
@agent_class = Net::HTTP::Proxy(proxy_uri.host,proxy_uri.port)
else
@agent_class = Net::HTTP
end
end
Am i wrong ? Does anyone have any info about proxy support ?
Thanks a lot.
|