class Gem::Commands::UninstallCommand
def execute
def execute check_version # Consider only gem specifications installed at `--install-dir` Gem::Specification.dirs = options[:install_dir] if options[:install_dir] if options[:all] && !options[:args].empty? uninstall_specific elsif options[:all] uninstall_all else uninstall_specific end end