lib/puppet/forge/repository.rb
# Read HTTP proxy configurationm from Puppet's config file, or the
# http_proxy environment variable.
Read HTTP proxy configurationm from Puppet's config file, or the
http_proxy environment variable.
Read HTTP proxy configurationm from Puppet ' s config file or the http_proxy environment variable .
def http_proxy_env
      proxy_env = ENV["http_proxy"] || ENV["HTTP_PROXY"] || nil
      begin
        return URI.parse(proxy_env) if proxy_env
      rescue URI::InvalidURIError
        return nil
      end
      return nil
    end
def http_proxy_env proxy_env = ENV [ "http_proxy" ] || ENV [ "HTTP_PROXY" ] || nil begin return URI . parse ( proxy_env ) if proxy_env rescue URI :: InvalidURIError return nil end return nil end
Read HTTP proxy configurationm from Puppet's config file, or the
http_proxy environment variable.
Read HTTP proxy configurationm from Puppet ' s config file or the http_proxy environment variable .