Vagrant plugin check

- Adds support for validating that all required Vagrant plugins have
  been installed.

Closes-Bug: 1606575
Change-Id: I06002ef9d43d081b5ae9f326377e5009b4e62e36
This commit is contained in:
Matthew Montgomery 2016-07-25 17:36:02 -05:00
parent a06a57ba54
commit cd8f68b43e

View File

@ -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