Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 64743
BY: S├ębastien Dabet (sdabet)
DATE: 2009-02-12 11:52
SUBJECT: rubyforge through proxy

 

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.


Thread View

Thread Author Date
rubyforge through proxyS├ębastien Dabet2009-02-12 11:52

Post a followup to this message