Must load vagrant before checking version

This commit is contained in:
Gerben Meijer 2016-04-11 16:02:42 +02:00
parent 4536218d33
commit f8241645fc

View File

@ -13,6 +13,12 @@ module VagrantPlugins
end
end
begin
require 'vagrant'
rescue LoadError
raise 'The Vagrant Libvirt plugin must be run within Vagrant.'
end
# This is a sanity check to make sure no one is attempting to install
# this into an early Vagrant version.
if Vagrant::VERSION < '1.5.0'