Class Gem::Uninstaller
In: lib/rubygems/installer.rb
Parent: Object

The Uninstaller class uninstalls a Gem

Methods

Included Modules

UserInteraction

Public Class methods

Constructs an Uninstaller instance

gem:[String] The Gem name to uninstall

Public Instance methods

spec:the spec of the gem to be uninstalled
list:the list of all such gems

Warning: this method modifies the list parameter. Once it has uninstalled a gem, it is removed from that list.

list:the list of all gems to remove

Warning: this method modifies the list parameter. Once it has uninstalled a gem, it is removed from that list.

Remove executables and batch files (windows only) for the gem as it is being installed

gemspec::[Specification] the gem whose executables need to be removed.

Performs the uninstall of the Gem. This removes the spec, the Gem directory, and the cached .gem file,

Application stubs are (or should be) removed according to what is still installed.

XXX: Application stubs refer to specific gem versions, which means things may get inconsistent after an uninstall (i.e. referring to a version that no longer exists).

[Validate]