Clean up gem sources modifications
Based on suggestions from @zenspider here:
3daf3e532d (r33408747)
This commit is contained in:
parent
ce56739b29
commit
07b9f39a54
|
@ -76,12 +76,8 @@ module Vagrant
|
||||||
|
|
||||||
# Add HashiCorp RubyGems source
|
# Add HashiCorp RubyGems source
|
||||||
if !Gem.sources.include?(HASHICORP_GEMSTORE)
|
if !Gem.sources.include?(HASHICORP_GEMSTORE)
|
||||||
current_sources = Gem.sources.sources.dup
|
sources = [HASHICORP_GEMSTORE] + Gem.sources.sources
|
||||||
Gem.sources.clear
|
Gem.sources.replace(sources)
|
||||||
Gem.sources << HASHICORP_GEMSTORE
|
|
||||||
current_sources.each do |src|
|
|
||||||
Gem.sources << src
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate dependencies for all registered plugins
|
# Generate dependencies for all registered plugins
|
||||||
|
|
Loading…
Reference in New Issue