Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#otp
otp
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/gemcutter_utilities.rb, line 74
def otp
options[:otp] || ENV["GEM_HOST_OTP_CODE"]
end
The OTP code from the command options or from the user’s configuration.
See also
#mfa_unauthorized?
#pretty_host
#host
#request_with_otp
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0