From 67d19df5537e3aba73a003e6e3c8c3f3b0493707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Fri, 2 Oct 2015 15:26:36 +0200 Subject: [PATCH] Install vagrant-vbguest plugin automaticly --- .vagrantplugins | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vagrantplugins diff --git a/.vagrantplugins b/.vagrantplugins new file mode 100644 index 00000000..efccf081 --- /dev/null +++ b/.vagrantplugins @@ -0,0 +1,14 @@ +required_plugins = %w(vagrant-vbguest) + +requires_restart = false + +required_plugins.each do |plugin| + unless Vagrant.has_plugin? plugin + system "vagrant plugin install #{plugin}" + requires_restart = true + end +end + +if requires_restart + exec "vagrant #{ARGV.join' '}" +end