Sha256: 274672b1da0bfaa0e2302df14474295529b05c71784a56237d55d03d45f31542
Contents?: true
Size: 502 Bytes
Versions: 40
Compression:
Stored size: 502 Bytes
Contents
module Vagrant module Action module VM # Discards the saved state of the VM if its saved. If its # not saved, does nothing. class DiscardState def initialize(app, env) @app = app end def call(env) if env[:vm].state == :saved env[:ui].info I18n.t("vagrant.actions.vm.discard_state.discarding") env[:vm].driver.discard_saved_state end @app.call(env) end end end end end
Version data entries
40 entries across 40 versions & 6 rubygems