instance method
Gem::GemcutterUtilities#host
host
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 73
def host
configured_host = Gem.host unless
Gem.configuration.disable_default_gem_server
@host ||=
begin
env_rubygems_host = ENV["RUBYGEMS_HOST"]
env_rubygems_host = nil if env_rubygems_host&.empty?
env_rubygems_host || configured_host
end
end
The host to connect to either from the RUBYGEMS_HOST environment variable or from the user’s configuration
See also
#get_user_profile
#mfa_unauthorized?
#get_scope_params
#otp
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0