Skip to content

Commit

Permalink
raise minimal Vagrant version to 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuzmin committed Jul 3, 2014
1 parent bfc93ae commit 81ca16b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/vSphere/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
require 'vagrant'
begin
require "vagrant"
rescue LoadError
raise "The Vagrant vSphere 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"
raise "The Vagrant vSphere plugin is only compatible with Vagrant 1.5+"
end

module VagrantPlugins
module VSphere
Expand Down

0 comments on commit 81ca16b

Please # to comment.