Class: Vagrant::Boxen::ManifestBuilder
- Inherits:
-
Object
- Object
- Vagrant::Boxen::ManifestBuilder
- Defined in:
- lib/vagrant-boxen/manifest_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(config) ⇒ ManifestBuilder
constructor
A new instance of ManifestBuilder.
Constructor Details
#initialize(config) ⇒ ManifestBuilder
Returns a new instance of ManifestBuilder.
4 5 6 |
# File 'lib/vagrant-boxen/manifest_builder.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#build ⇒ Object
8 9 10 11 12 |
# File 'lib/vagrant-boxen/manifest_builder.rb', line 8 def build exec_defaults + @config.enabled_modules.map do |mod| mod.build_manifest end.join("\n\n") end |