Skip to Content Skip to Search
Methods
E
N
Included Modules

Class Public methods

new()

# File ruby/lib/rubygems/commands/signin_command.rb, line 9
def initialize
  super "signin", "Sign in to any gemcutter-compatible host. "\
        "It defaults to https://rubygems.org"

  add_option("--host HOST", "Push to another gemcutter-compatible host") do |value, options|
    options[:host] = value
  end

  add_otp_option
end

Instance Public methods

execute()

# File ruby/lib/rubygems/commands/signin_command.rb, line 31
def execute
  sign_in options[:host]
end