instance method
Gem::GemcutterUtilities#get_scope_params
get_scope_params(scope)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 321
def get_scope_params(scope)
scope_params = { index_rubygems: true, push_rubygem: true }
if scope
scope_params = { scope => true }
else
say "The default access scope is:"
scope_params.each do |k, _v|
say " #{k}: y"
end
say "\n"
customise = ask_yes_no("Do you want to customise scopes?", false)
if customise
EXCLUSIVELY_API_SCOPES.each do |excl_scope|
selected = ask_yes_no("#{excl_scope} (exclusive scope, answering yes will not prompt for other scopes)", false)
next unless selected
return { excl_scope => true }
end
scope_params = {}
API_SCOPES.each do |s|
selected = ask_yes_no(s.to_s, false)
scope_params[s] = true if selected
end
end
say "\n"
end
scope_params
end
No documentation available
See also
#get_mfa_params
#get_user_profile
#get_key_name
#host
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0