Sha256: f7768017d13176e725dd543eba5fd3d1c2c43d1f2a515faebfbefd59bcf0782f
Contents?: true
Size: 650 Bytes
Versions: 82
Compression:
Stored size: 650 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Action class ForcedHalt def initialize(app, env) @app = app end def call(env) current_state = env[:machine].state.id if current_state == :running || current_state == :gurumeditation env[:ui].info I18n.t("vagrant.actions.vm.halt.force") env[:machine].provider.driver.halt end # Sleep for a second to verify that the VM properly # cleans itself up. Silly VirtualBox. sleep 1 if !env["vagrant.test"] @app.call(env) end end end end end
Version data entries
82 entries across 75 versions & 13 rubygems