Class: VagrantPlugins::ProxyConf::Plugin
- Inherits:
-
Vagrant::Plugin::V2::Plugin
- Object
- Vagrant::Plugin::V2::Plugin
- VagrantPlugins::ProxyConf::Plugin
- Defined in:
- lib/vagrant-proxyconf/plugin.rb,
lib/vagrant-proxyconf/plugin.rb
Overview
Vagrant Plugin class that registers all proxy configs, hooks, etc.
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
16 17 18 19 20 21 22 |
# File 'lib/vagrant-proxyconf/plugin.rb', line 16 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 |