Class: VagrantPlugins::Dotvm::Injector::Host

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-dotvm/injector/host.rb

Class Method Summary collapse

Class Method Details

.inject(host: nil, machine: nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/vagrant-dotvm/injector/host.rb', line 5

def self.inject(host: nil, machine: nil)
  machine.vm.provision "shell", run: "always" do |s|
    s.path       = "#{UTILS_PATH}/add_host.sh"
    s.args       = [host.ip, host.host]
    s.privileged = true
  end
end