class VagrantPlugins::ProviderLibvirt::Action::SnapshotRestore
Public Class Methods
Source
# File lib/vagrant-libvirt/action/snapshot_restore.rb, line 7 def initialize(app, env) @app = app end
Public Instance Methods
Source
# File lib/vagrant-libvirt/action/snapshot_restore.rb, line 11 def call(env) env[:ui].info(I18n.t( "vagrant.actions.vm.snapshot.restoring", name: env[:snapshot_name])) env[:machine].provider.driver.restore_snapshot(env[:snapshot_name]) @app.call(env) end