类 Gem::Commands::SigninCommand
公共类方法
new() 点击切换源代码
调用父类方法
Gem::Command::new
# File rubygems/commands/signin_command.rb, line 9 def initialize super "signin", "Sign in to any gemcutter-compatible host. "\ "It defaults to https://rubygems.org.cn" add_option("--host HOST", "Push to another gemcutter-compatible host") do |value, options| options[:host] = value end add_otp_option end
公共实例方法
execute() 点击切换源代码
# File rubygems/commands/signin_command.rb, line 31 def execute sign_in options[:host] end