Class: VagrantPlugins::HostShell::Provisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-host-shell/provisioner.rb

Instance Method Summary collapse

Instance Method Details

#provisionObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/vagrant-host-shell/provisioner.rb', line 3

def provision
  Vagrant::Util::Subprocess.execute(
    '/bin/bash',
    '-c',
    config.inline,
    :notify => [:stdout, :stderr]
  ) do |io_name, data|
    @machine.env.ui.info "[#{io_name}] #{data}"
  end
end