Support for the Ruby 2.4 series has ended. See here for reference.

In Files

  • rubygems/commands/mirror_command.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::Commands::MirrorCommand

Public Class Methods

new() click to toggle source
 
               # File rubygems/commands/mirror_command.rb, line 6
def initialize
  super('mirror', 'Mirror all gem files (requires rubygems-mirror)')
  begin
    Gem::Specification.find_by_name('rubygems-mirror').activate
  rescue Gem::LoadError
    # no-op
  end
end
            

Public Instance Methods

execute() click to toggle source
 
               # File rubygems/commands/mirror_command.rb, line 21
def execute
  alert_error "Install the rubygems-mirror gem for the mirror command"
end