Class: VagrantPlugins::ProxyConf::Plugin
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Plugin
- Defined in:
- lib/vagrant-proxyconf/plugin.rb
Constant Summary collapse
- MIN_VAGRANT_VERSION =
The minimum compatible Vagrant version
'1.2.0'
Class Method Summary collapse
-
.check_vagrant_version! ⇒ Object
Verifies that the Vagrant version fulfills the requirements.
Class Method Details
.check_vagrant_version! ⇒ Object
Verifies that the Vagrant version fulfills the requirements
is incompatible with the Vagrant version
13 14 15 16 17 18 19 |
# File 'lib/vagrant-proxyconf/plugin.rb', line 13 def self.check_vagrant_version! if Gem::Version.new(Vagrant::VERSION) < Gem::Version.new(MIN_VAGRANT_VERSION) msg = "vagrant-proxyconf plugin requires Vagrant #{MIN_VAGRANT_VERSION} or newer" $stderr.puts msg raise msg end end |