class method
Gem::Commands::PushCommand.new
new
lib/rubygems/commands/push_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/push_command.rb, line 32
def initialize
super "push", "Push a gem up to the gem server", host: host, attestations: []
@user_defined_host = false
add_proxy_option
add_key_option
add_otp_option
add_option("--host HOST",
"Push to another gemcutter-compatible host",
" (e.g. https://rubygems.org)") do |value, options|
options[:host] = value
@user_defined_host = true
end
add_option("--attestation FILE",
"Push with sigstore attestations") do |value, options|
options[:attestations] << value
end
@host = nil
end
No documentation available