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:
parent
a06a57ba54
commit
cd8f68b43e
7
dev/vagrant/Vagrantfile
vendored
7
dev/vagrant/Vagrantfile
vendored
@ -3,6 +3,13 @@
|
|||||||
|
|
||||||
require "ipaddr"
|
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
|
class VagrantConfigMissing < StandardError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user