In Files

  • rubygems/commands/signin_command.rb

Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Gem::Commands::SigninCommand

Public Class Methods

new() click to toggle source
 
               # File rubygems/commands/signin_command.rb, line 7
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

end
            

Public Instance Methods

execute() click to toggle source
 
               # File rubygems/commands/signin_command.rb, line 28
def execute
  sign_in options[:host]
end