core: check for Ruby 2.0

This commit is contained in:
Mitchell Hashimoto 2013-12-01 22:18:27 -08:00
parent 88bb0a3949
commit 9be6b4f0d3
1 changed files with 6 additions and 0 deletions

View File

@ -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 'log4r'
require 'rubygems' require 'rubygems'