Method: Gem::Commands::MirrorCommand#initialize
- Defined in:
- lib/rubygems/commands/mirror_command.rb
#initialize ⇒ MirrorCommand
Returns a new instance of MirrorCommand.
7 8 9 10 11 12 13 14 |
# File 'lib/rubygems/commands/mirror_command.rb', line 7 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 |