The API key from the command options or
from the user’s configuration.
# File lib/rubygems/gemcutter_utilities.rb, line 33
def api_key
if options[:key] then
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