Class: VagrantPlugins::Utm::Action::BootDisposable

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_utm/action/boot_disposable.rb

Overview

Action to start the virtual machine in disposable mode.

Instance Method Summary collapse

Constructor Details

#initialize(app, _env) ⇒ BootDisposable



8
9
10
# File 'lib/vagrant_utm/action/boot_disposable.rb', line 8

def initialize(app, _env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/vagrant_utm/action/boot_disposable.rb', line 12

def call(env)
  # Start up the VM in disposable mode.
  env[:ui].warn I18n.t("vagrant_utm.actions.vm.boot.disposable")
  env[:machine].provider.driver.start_disposable

  @app.call(env)
end