From fcd93bb13334ae902a52010a71a4997ac5006e21 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 20 Mar 2013 22:33:50 -0700 Subject: [PATCH] Logging on gem sources --- plugins/commands/plugin/action/install_gem.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/commands/plugin/action/install_gem.rb b/plugins/commands/plugin/action/install_gem.rb index 7d1fe27c1..dba41d545 100644 --- a/plugins/commands/plugin/action/install_gem.rb +++ b/plugins/commands/plugin/action/install_gem.rb @@ -26,8 +26,11 @@ module VagrantPlugins env[:ui].info(I18n.t("vagrant.commands.plugin.installing", :name => plugin_name_label)) installed_gems = env[:gem_helper].with_environment do - # Override the list of sources by the ones set on the cmd-line if any - Gem.sources = env[:plugin_sources] if env[:plugin_sources] + # Override the list of sources by the ones set as a parameter if given + if env[:plugin_sources] + @logger.info("Custom plugin sources: #{env[:plugin_sources]}") + Gem.sources = env[:plugin_sources] + end installer = Gem::DependencyInstaller.new(:document => [], :prerelease => prerelease)