Flowdock
method

execute

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: UninstallCommand
execute() 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 75
  def execute
    original_path = Gem.path

    get_all_gem_names.each do |gem_name|
      begin
        Gem::Uninstaller.new(gem_name, options).uninstall
      rescue Gem::InstallError => e
        alert e.message
      rescue Gem::GemNotInHomeException => e
        spec = e.spec
        alert("In order to remove #{spec.name}, please execute:\n"                "\tgem uninstall #{spec.name} --install-dir=#{spec.installation_path}")
      ensure
        Gem.use_paths(*original_path)
      end
    end
  end
Register or log in to add new notes.