Enh: Vagrant process is not interrupted, now, after the installation of each plugin (#227)

This commit is contained in:
Nazar Holubovskyy 2020-09-04 23:42:12 +01:00 committed by GitHub
parent eb265a4edb
commit 9e0b45841b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
Vagrantfile vendored
View File

@ -1,9 +1,19 @@
require 'yaml'
require 'fileutils'
required_plugins_installed = nil
required_plugins = %w( vagrant-hostmanager vagrant-vbguest )
required_plugins.each do |plugin|
exec "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
unless Vagrant.has_plugin? plugin
system "vagrant plugin install #{plugin}"
required_plugins_installed = true
end
end
# IF plugin[s] was just installed - restart required
if required_plugins_installed
system "vagrant up"
exit
end
domains = {