Class: VagrantPlugins::ProxyConf::Plugin

Inherits:
Vagrant::Plugin::V2::Plugin
  • Object
show all
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

Class Method Details

.check_vagrant_version!Object

Verifies that the Vagrant version fulfills the requirements

is incompatible with the Vagrant version

Raises:

  • (VagrantPlugins::ProxyConf::VagrantVersionError)

    if this plugin



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