From 9be6b4f0d3fb12ba4d85b54b5afc19f9d7a4c772 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 1 Dec 2013 22:18:27 -0800 Subject: [PATCH] core: check for Ruby 2.0 --- lib/vagrant.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 56c9b9fae..5c4ba81cf 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -1,3 +1,9 @@ +# Do a Ruby version check early so we can fail fast before any additional +# files are loaded. +if RUBY_VERSION < "2.0.0" + abort "Vagrant requires Ruby 2.0+" +end + require 'log4r' require 'rubygems'