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