Class Fission::Action::Snapshot::Reverter
In: lib/fission/action/snapshot/reverter.rb
Parent: Object

Methods

Public Class methods

Internal: Creates a new SnapshotReverter object. This accepts a VM object.

vm - An instance of VM

Examples:

  Fission::Action::SnapshotReverter.new @my_vm

Returns a new SnapshotReverter object

Public Instance methods

Public: Reverts the VM to the specified snapshot. The snapshot to revert to must exist and the Fusion GUI must not be running.

name - The snapshot name to revert to.

Examples

  @reverter.revert_to_snapshot('foo_snap_1')

Returns a Response with the result. If successful, the Response‘s data attribute will be nil. If there is an error, an unsuccessful Response will be returned.

[Validate]