Method: Gem::Commands::PushCommand#initialize
- Defined in:
- lib/rubygems/commands/push_command.rb
#initialize ⇒ PushCommand
Returns a new instance of PushCommand.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File '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, | [:host] = value @user_defined_host = true end add_option("--attestation FILE", "Push with sigstore attestations") do |value, | [:attestations] << value end @host = nil end |