Class: VagrantPlugins::Provisioner

Inherits:
Object
  • Object
show all
Includes:
Vagrant::Util::Retryable
Defined in:
lib/niman/vagrant/provisioner.rb

Instance Method Summary collapse

Instance Method Details

#cleanupObject



21
22
# File 'lib/niman/vagrant/provisioner.rb', line 21

def cleanup
end

#configure(root_config) ⇒ Object



7
8
# File 'lib/niman/vagrant/provisioner.rb', line 7

def configure(root_config)
end

#provisionObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/niman/vagrant/provisioner.rb', line 10

def provision
  require 'niman'
  @machine.communicate.tap do |comm|
    vagrant_shell = VagrantPlugins::RemoteShell.new(comm, @machine)
    app = Niman::CLI::Application.new
    app.client_shell  = vagrant_shell
    app.silent = true
    app.apply
  end
end