Skip to content

Commit 81ca16b

Browse files
committed
raise minimal Vagrant version to 1.5
1 parent bfc93ae commit 81ca16b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/vSphere/plugin.rb

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
require 'vagrant'
1+
begin
2+
require "vagrant"
3+
rescue LoadError
4+
raise "The Vagrant vSphere plugin must be run within Vagrant."
5+
end
6+
7+
# This is a sanity check to make sure no one is attempting to install
8+
# this into an early Vagrant version.
9+
if Vagrant::VERSION < "1.5"
10+
raise "The Vagrant vSphere plugin is only compatible with Vagrant 1.5+"
11+
end
212

313
module VagrantPlugins
414
module VSphere

0 commit comments

Comments
 (0)