Class: Gem::Commands::DepcleanCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::DepcleanCommand
- Defined in:
- lib/commands/depclean_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ DepcleanCommand
constructor
A new instance of DepcleanCommand.
Constructor Details
#initialize ⇒ DepcleanCommand
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
#execute ⇒ Object
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 |