instance method
Gem::GemcutterUtilities#verify_api_key
verify_api_key(key)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 195
def verify_api_key(key)
if Gem.configuration.api_keys.key? key
Gem.configuration.api_keys[key]
else
alert_error "No such API key. Please add it to your configuration (done automatically on initial `gem push`)."
terminate_interaction(ERROR_CODE)
end
end
Retrieves the pre-configured API key key or terminates interaction with an error.
See also
#update_scope
#wait_for_otp_thread
#sign_in
#webauthn_enabled?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0