instance method
Gem::GemcutterUtilities#otp
otp
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 61
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.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0