instance method
Gem::Commands::PushCommand#send_gem
send_gem(name)
lib/rubygems/commands/push_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/push_command.rb, line 75
def send_gem(name)
args = [:post, "api/v1/gems"]
_, push_host = get_hosts_for(name)
@host ||= push_host
# Always include @host, even if it's nil
args += [@host, push_host]
say "Pushing gem to #{@host || Gem.host}..."
response = send_push_request(name, args)
with_response response
end
No documentation available
See also
#get_push_scope
#send_push_request
#get_hosts_for
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0