From cedb0f4e0d562dd8eb534c6783149e1631ecec65 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 29 Jul 2014 14:25:50 +0200 Subject: [PATCH] Check if the vagrant-berkshelf plugin is available Change-Id: Ie615cf81be40b8395d8e7672e59407cc4925b410 --- Vagrantfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 8c4b38a..955cac9 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,6 +3,11 @@ VAGRANTFILE_API_VERSION = "2" # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +unless Vagrant.has_plugin?("vagrant-berkshelf") + raise "The needed plugin vagrant-berkshelf is not available. + Install it by calling 'vagrant plugin install vagrant-berkshelf'." +end + Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Settings for all vms config.berkshelf.enabled = true