We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc93ae commit 81ca16bCopy full SHA for 81ca16b
lib/vSphere/plugin.rb
@@ -1,4 +1,14 @@
1
-require 'vagrant'
+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
12
13
module VagrantPlugins
14
module VSphere
0 commit comments