From cd8f68b43ea5dff2295c8ff94ce2dcf10f257c83 Mon Sep 17 00:00:00 2001 From: Matthew Montgomery Date: Mon, 25 Jul 2016 17:36:02 -0500 Subject: [PATCH] Vagrant plugin check - Adds support for validating that all required Vagrant plugins have been installed. Closes-Bug: 1606575 Change-Id: I06002ef9d43d081b5ae9f326377e5009b4e62e36 --- dev/vagrant/Vagrantfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/vagrant/Vagrantfile b/dev/vagrant/Vagrantfile index 270ffca0c2..f59fafaecb 100644 --- a/dev/vagrant/Vagrantfile +++ b/dev/vagrant/Vagrantfile @@ -3,6 +3,13 @@ require "ipaddr" +# Check for required plugin(s) +['vagrant-hostmanager'].each do |plugin| + unless Vagrant.has_plugin?(plugin) + raise "#{plugin} plugin not found. Please install it via 'vagrant plugin install #{plugin}'" + end +end + class VagrantConfigMissing < StandardError end