Allow forcing plugins with VAGRANT_FORCE_PLUGINS
This commit is contained in:
parent
b353865da1
commit
582e1096e4
|
@ -5,10 +5,17 @@
|
||||||
if defined?(Bundler)
|
if defined?(Bundler)
|
||||||
require "bundler/shared_helpers"
|
require "bundler/shared_helpers"
|
||||||
if Bundler::SharedHelpers.in_bundle?
|
if Bundler::SharedHelpers.in_bundle?
|
||||||
puts "Vagrant appears to be running in a Bundler environment. Plugins"
|
if ENV["VAGRANT_FORCE_PLUGINS"]
|
||||||
puts "will not be loaded and plugin commands are disabled."
|
puts "Vagrant appears to be running in a Bundler environment. Normally,"
|
||||||
puts
|
puts "plugins would not be loaded, but VAGRANT_FORCE_PLUGINS is enabled,"
|
||||||
ENV["VAGRANT_NO_PLUGINS"] = "1"
|
puts "so they will be."
|
||||||
|
puts
|
||||||
|
else
|
||||||
|
puts "Vagrant appears to be running in a Bundler environment. Plugins"
|
||||||
|
puts "will not be loaded and plugin commands are disabled."
|
||||||
|
puts
|
||||||
|
ENV["VAGRANT_NO_PLUGINS"] = "1"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue