1require 'rubygems/command' 2 3class Gem::Commands::MirrorCommand < Gem::Command 4 def initialize 5 super('mirror', 'Mirror all gem files (requires rubygems-mirror)') 6 begin 7 Gem::Specification.find_by_name('rubygems-mirror').activate 8 rescue Gem::LoadError 9 # no-op 10 end 11 end 12 13 def execute 14 alert_error "Install the rubygems-mirror gem for the mirror command" 15 end 16 17end 18