method
execute
v1_9_3_125 -
Show latest stable
- Class:
Gem::Commands::UninstallCommand
execute()public
No documentation available.
# 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