Sha256: 1f0e47c02fec78de5100c2bc6845d2a5c63224736d3cfdb698a3d61b42f8daa8
Contents?: true
Size: 507 Bytes
Versions: 61
Compression:
Stored size: 507 Bytes
Contents
module Vagrant class 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"].created? && env["vm"].vm.saved? env.ui.info I18n.t("vagrant.actions.vm.discard_state.discarding") env["vm"].vm.discard_state end @app.call(env) end end end end end
Version data entries
61 entries across 61 versions & 5 rubygems