The API key from the command options or
from the user’s configuration.
# File lib/rubygems/gemcutter_utilities.rb, line 43
def api_key
if options[:key]
verify_api_key options[:key]
elsif Gem.configuration.api_keys.key?(host)
Gem.configuration.api_keys[host]
else
Gem.configuration.rubygems_api_key
end
end