Method: Gem::Commands::UninstallCommand#uninstall_all
- Defined in:
- lib/rubygems/commands/uninstall_command.rb
#uninstall_all ⇒ Object
140 141 142 143 144 145 146 147 148 149 |
# File 'lib/rubygems/commands/uninstall_command.rb', line 140 def uninstall_all specs = Gem::Specification.reject(&:default_gem?) specs.each do |spec| [:version] = spec.version uninstall_gem spec.name end alert "Uninstalled all gems in #{[:install_dir] || Gem.dir}" end |