Sha256: 8051bad6194418325a9ec60c10fca9f00f31fc0cda9ef108860c2948099d11e2

Contents?: true

Size: 395 Bytes

Versions: 23

Compression:

Stored size: 395 Bytes

Contents

require 'rubygems/command'

class Gem::Commands::MirrorCommand < Gem::Command
  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

  def execute
    alert_error "Install the rubygems-mirror gem for the mirror command"
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubygems-update-2.0.17 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.16 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.15 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.14 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.13 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.12 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.11 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.10 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.9 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.8 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.7 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.1.0.rc.1 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.6 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.5 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.4 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.3 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.2 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.0 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.0.rc.2 lib/rubygems/commands/mirror_command.rb
rubygems-update-2.0.0.rc.1 lib/rubygems/commands/mirror_command.rb