Method: Gem::Commands::UninstallCommand#uninstall_all

Defined in:
lib/rubygems/commands/uninstall_command.rb

#uninstall_allObject



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|
    options[:version] = spec.version
    uninstall_gem spec.name
  end

  alert "Uninstalled all gems in #{options[:install_dir] || Gem.dir}"
end