Sha256: 9078c72578fdc870358d5b36ccc1d198068ea786b8cd610ae5c874c78f37e451

Contents?: true

Size: 626 Bytes

Versions: 27

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true
require_relative "../command"

unless defined? Gem::Commands::MirrorCommand
  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 description # :nodoc:
      <<-EOF
The mirror command has been moved to the rubygems-mirror gem.
      EOF
    end

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rubygems-update-3.3.27 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.17 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.16 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.15 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.14 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.13 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.12 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.11 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.10 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.9 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.8 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.7 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.6 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.5 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.4 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.3 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.2 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.1 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.4.0 lib/rubygems/commands/mirror_command.rb
rubygems-update-3.3.26 lib/rubygems/commands/mirror_command.rb