Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/lib/rubygems/gemcutter_utilities.rb, line 344
def get_mfa_params(profile)
mfa_level = profile["mfa"]
params = {}
if ["ui_only", "ui_and_gem_signin"].include?(mfa_level)
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
#fetch_otp
#get_user_profile
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1