Flowdock
method

uninstall_all

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: UninstallCommand
uninstall_all() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/uninstall_command.rb, line 126
  def uninstall_all
    specs = Gem::Specification.reject { |spec| spec.default_gem? }

    specs.each do |spec|
      options[:version] = spec.version

      begin
        Gem::Uninstaller.new(spec.name, options).uninstall
      rescue Gem::InstallError
      end
    end

    alert "Uninstalled all gems in #{options[:install_dir]}"
  end
Register or log in to add new notes.