Class: VagrantPlugins::Serverkit::Provisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_plugins/serverkit/provisioner.rb

Defined Under Namespace

Classes: ServerkitError

Instance Method Summary collapse

Instance Method Details

#provisionObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/vagrant_plugins/serverkit/provisioner.rb', line 7

def provision
  ::Serverkit::Actions::Apply.new(
    hosts: host,
    recipe_path: config.recipe_path,
    ssh_options: ssh_options,
    variables_path: config.variables_path,
  ).call
rescue => exception
  raise ServerkitError, exception
end