summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin English <austinenglish@gmail.com>2016-02-14 03:57:39 -0600
committerAustin English <austinenglish@gmail.com>2016-02-16 21:13:19 -0600
commit6f2ae95a7071e915a2c7ea7e016f4f46054c263e (patch)
tree88f8ca19357b593dcd14a66493f2bcca7c943893
parent54523408de8d9d8916e67504187f43edf04f6542 (diff)
Rakefile: warn if vagrant isn't 1.4.3feature/11125-rakefile-detect-vagrant-version
-rw-r--r--Rakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 56fc716..6c2f4c3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -27,6 +27,12 @@ $:.unshift File.expand_path('../vagrant/lib', __FILE__)
require 'tails_build_settings'
require 'vagrant_version'
+VAGRANT_REQUIRED_VERSION = '1.4.3'
+
+if Vagrant::VERSION != VAGRANT_REQUIRED_VERSION
+ abort "Vagrant version: #{Vagrant::VERSION}. Required version: #{VAGRANT_REQUIRED_VERSION}. See https://tails.boum.org/contribute/build/#index3h3"
+end
+
# Path to the directory which holds our Vagrantfile
VAGRANT_PATH = File.expand_path('../vagrant', __FILE__)