Module: VagrantPlugins::Dotvm::Injector::Instance
- Extended by:
- AbstractInjector
- Defined in:
- lib/vagrant-dotvm/injector/instance.rb
Overview
Injects DotVm instance configuration into Vagrant
Class Method Summary collapse
Methods included from AbstractInjector
generate_hash, rewrite_hash, rewrite_options
Class Method Details
.inject(instance, vc) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vagrant-dotvm/injector/instance.rb', line 10 def inject(instance, vc) instance..to_h.each do |category, | .to_a.each do |option| vc.send(category).send("#{option.name}=", option.value) end end instance.projects.each do |project| Injector::Project.inject project, vc end end |