Be silent when uninstalling gems

This commit is contained in:
Mitchell Hashimoto 2013-02-03 10:32:31 -08:00
parent 572142df7e
commit 60d21e35c9
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ module VagrantPlugins
# Clear paths so that it reads the new GEM_HOME setting
Gem.paths = ENV
return yield
# Use a silent UI so that we have no output
Gem::DefaultUserInteraction.use_ui(Gem::SilentUI.new) do
return yield
end
ensure
# Restore the old GEM_* settings
ENV["GEM_HOME"] = old_gem_home