mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Logging on gem sources
This commit is contained in:
parent
fe8d68d15e
commit
fcd93bb133
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue