class Buildr::Options::Proxies
Wraps around the proxy environment variables:
-
:http – HTTP_PROXY
-
:https – HTTPS_PROXY
-
:exclude – NO_PROXY
Public Instance Methods
exclude()
click to toggle source
Returns list of hosts to exclude from proxying (NO_PROXY).
# File lib/buildr/core/environment.rb, line 72 def exclude @exclude ||= EnvArray.new('NO_PROXY') end
exclude=(url)
click to toggle source
Sets list of hosts to exclude from proxy (NO_PROXY). Accepts host name, array of names, or nil to clear the list.
# File lib/buildr/core/environment.rb, line 78 def exclude=(url) exclude.clear exclude.concat [url].flatten if url exclude end
http()
click to toggle source
Returns the HTTP_PROXY URL.
# File lib/buildr/core/environment.rb, line 50 def http ENV['HTTP_PROXY'] || ENV['http_proxy'] end
http=(url)
click to toggle source
Sets the HTTP_PROXY URL.
# File lib/buildr/core/environment.rb, line 55 def http=(url) ENV['http_proxy'] = nil ENV['HTTP_PROXY'] = url end
https()
click to toggle source
Returns the HTTPS_PROXY URL.
# File lib/buildr/core/environment.rb, line 61 def https ENV['HTTPS_PROXY'] || ENV['https_proxy'] end
https=(url)
click to toggle source
Sets the HTTPS_PROXY URL.
# File lib/buildr/core/environment.rb, line 66 def https=(url) ENV['https_proxy'] = nil ENV['HTTPS_PROXY'] = url end