Enh: Vagrant process is not interrupted, now, after the installation of each plugin (#227)
This commit is contained in:
parent
eb265a4edb
commit
9e0b45841b
12
Vagrantfile
vendored
12
Vagrantfile
vendored
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user