Module: VagrantPlugins::Dotvm::Injector::Route
- Extended by:
- AbstractInjector
- Defined in:
- lib/vagrant-dotvm/injector/route.rb
Overview
Injects DotVm route configuration into Vagrant
Class Method Summary collapse
Methods included from AbstractInjector
generate_hash, rewrite_hash, rewrite_options
Class Method Details
.inject(route: nil, machine: nil) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/vagrant-dotvm/injector/route.rb', line 10 def inject(route: nil, machine: nil) machine.vm.provision 'shell', run: 'always' do |s| s.path = "#{UTILS_PATH}/setup_route.sh" s.args = [route.destination, route.gateway] s.privileged = true s.name = "route to #{route.destination} via #{route.gateway}" end end |