Sha256: 73cebc45301cf6277d7cb8b674cc02d80f2c4f769357b03a6d33b3b157f7ac3d
Contents?: true
Size: 745 Bytes
Versions: 30
Compression:
Stored size: 745 Bytes
Contents
module VagrantPlugins module Parallels module Action class SnapshotDelete def initialize(app, env) @app = app end def call(env) snapshots = env[:machine].provider.driver.list_snapshots(env[:machine].id) snapshot_id = snapshots[env[:snapshot_name]] env[:ui].info I18n.t('vagrant.actions.vm.snapshot.deleting', name: env[:snapshot_name]) env[:machine].provider.driver.delete_snapshot( env[:machine].id, snapshot_id) env[:ui].success I18n.t('vagrant.actions.vm.snapshot.deleted', name: env[:snapshot_name]) @app.call(env) end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems