From 60d21e35c97cdee0b97f3cb8e2aa80943413b78a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 3 Feb 2013 10:32:31 -0800 Subject: [PATCH] Be silent when uninstalling gems --- plugins/commands/plugin/gem_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/commands/plugin/gem_helper.rb b/plugins/commands/plugin/gem_helper.rb index d91be4442..2dc260e5e 100644 --- a/plugins/commands/plugin/gem_helper.rb +++ b/plugins/commands/plugin/gem_helper.rb @@ -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