Class: Gem::Commands::DepcleanCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/commands/depclean_command.rb

Instance Method Summary collapse

Constructor Details

#initializeDepcleanCommand

Returns a new instance of DepcleanCommand.



6
7
8
# File 'lib/commands/depclean_command.rb', line 6

def initialize
  super 'depclean', 'Uninstall all unnecessary gems'
end

Instance Method Details

#executeObject



10
11
12
13
# File 'lib/commands/depclean_command.rb', line 10

def execute
  alert_warning "'gem depclean' is obsolete. Use 'gem world --depclean' instead."
  Gem::Commands::WorldCommand.new.depclean
end