When bundler is in use, require `:plugins` group

This commit is contained in:
Chris Roberts 2016-11-14 15:28:22 -08:00
parent de4612a549
commit 44d3aedc5b
1 changed files with 4 additions and 0 deletions

View File

@ -331,6 +331,10 @@ if Vagrant.plugins_enabled?
end
global_logger.debug("Successfully loaded plugin `#{plugin_name}`.")
end
if defined?(::Bundler)
global_logger.debug("Bundler detected in use. Loading `:plugins` group.")
::Bundler.require(:plugins)
end
rescue Exception => e
raise Vagrant::Errors::PluginLoadError, message: e.to_s
end