Module: VagrantPlugins::Tagprovision::Util

Defined in:
lib/vagrant-tagprovision/util.rb

Class Method Summary collapse

Class Method Details

.get_config(env) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/vagrant-tagprovision/util.rb', line 4

def self.get_config(env)
  # config_global has been removed from v1.5
  if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new('1.5')
    env.vagrantfile.config
  else
    env.config_global
  end
end