instance method
Gem::LocalRemoteOptions#add_proxy_option
add_proxy_option
lib/rubygems/local_remote_options.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/local_remote_options.rb, line 88
def add_proxy_option
accept_uri_http
add_option(:"Local/Remote", "-p", "--[no-]http-proxy [URL]", Gem::URI::HTTP,
"Use HTTP proxy for remote operations") do |value, options|
options[:http_proxy] = value == false ? :no_proxy : value
Gem.configuration[:http_proxy] = options[:http_proxy]
end
end
Add the –http-proxy option
See also
#add_local_remote_options
#add_source_option
#add_clear_sources_option
#add_update_sources_option
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0