End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#get_mfa_params
get_mfa_params(profile)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/gemcutter_utilities.rb, line 299
def get_mfa_params(profile)
mfa_level = profile["mfa"]
params = {}
if mfa_level == "ui_only" || mfa_level == "ui_and_gem_signin"
selected = ask_yes_no("Would you like to enable MFA for this key? (strongly recommended)")
params["mfa"] = true if selected
end
params
end
No documentation available
See also
#get_key_name
#get_scope_params
#default_host?
#get_user_profile
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2