Class: Vagrant::Boxen::Provisioner::Config
- Inherits:
-
Config::Base
- Object
- Config::Base
- Vagrant::Boxen::Provisioner::Config
- Defined in:
- lib/vagrant-boxen/provisioner.rb
Instance Attribute Summary collapse
-
#enabled_modules ⇒ Object
readonly
Returns the value of attribute enabled_modules.
Instance Method Summary collapse
- #enable_module(mod) ⇒ Object
-
#initialize(*args) ⇒ Config
constructor
A new instance of Config.
- #install(*mods) ⇒ Object
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_modules ⇒ Object (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 |