mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* lib/rubygems/*.rb: Update to RubyGems master(3e36528).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eae536ec3a
commit
e899fb19e9
3 changed files with 28 additions and 22 deletions
|
@ -1,23 +1,25 @@
|
|||
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
|
||||
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
|
||||
end
|
||||
|
||||
def description # :nodoc:
|
||||
<<-EOF
|
||||
def description # :nodoc:
|
||||
<<-EOF
|
||||
The mirror command has been moved to the rubygems-mirror gem.
|
||||
EOF
|
||||
end
|
||||
EOF
|
||||
end
|
||||
|
||||
def execute
|
||||
alert_error "Install the rubygems-mirror gem for the mirror command"
|
||||
end
|
||||
def execute
|
||||
alert_error "Install the rubygems-mirror gem for the mirror command"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue