Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Commands::PushCommand.new
new
lib/rubygems/commands/push_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/push_command.rb, line 36
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("--platform PLATFORM",
"Push a gem for a specific platform",
" (e.g. x86_64-darwin-20)") do |value, options|
options[:platform] = value
end
add_ruby_abi_option("push", " (e.g. 3.4)")
add_option("--attestation FILE",
"Push with sigstore attestations",
" (FILE must be a JSON sigstore bundle)") do |value, options|
options[:attestations] << value
end
@host = nil
end
No documentation available