Class: Vagrant::Boxen::Provisioner::Config

Inherits:
Config::Base
  • Object
show all
Defined in:
lib/vagrant-boxen/provisioner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Config

Returns a new instance of Config.



7
8
9
10
# File 'lib/vagrant-boxen/provisioner.rb', line 7

def initialize(*args)
  super
  @enabled_modules = []
end

Instance Attribute Details

#enabled_modulesObject (readonly)

Returns the value of attribute enabled_modules.



5
6
7
# File 'lib/vagrant-boxen/provisioner.rb', line 5

def enabled_modules
  @enabled_modules
end

Instance Method Details

#enable_module(mod) ⇒ Object



16
17
18
# File 'lib/vagrant-boxen/provisioner.rb', line 16

def enable_module(mod)
  @enabled_modules << mod
end

#install(*mods) ⇒ Object



12
13
14
# File 'lib/vagrant-boxen/provisioner.rb', line 12

def install(*mods)
  mods.each { |mod| enable_module module_for(mod).new({}) }
end