Class: VagrantPlugins::Utm::Action::BootDisposable
- Inherits:
-
Object
- Object
- VagrantPlugins::Utm::Action::BootDisposable
- Defined in:
- lib/vagrant_utm/action/boot_disposable.rb
Overview
Action to start the virtual machine in disposable mode.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ BootDisposable
constructor
A new instance of BootDisposable.
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 |