Sha256: e91d44ad0c28cbc142e3eb677a486f7b06bbe57915a97ad761b2b542f09c33dc
Contents?: true
Size: 459 Bytes
Versions: 33
Compression:
Stored size: 459 Bytes
Contents
module VagrantPlugins module Parallels module Action class ForcedHalt def initialize(app, env) @app = app end def call(env) current_state = env[:machine].state.id if current_state == :running env[:ui].info I18n.t('vagrant.actions.vm.halt.force') env[:machine].provider.driver.halt(:force) end @app.call(env) end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems