Class Fission::Action::Snapshot::Creator
In: lib/fission/action/snapshot/creator.rb
Parent: Object

Methods

Public Class methods

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

vm - An instance of VM

Examples:

  Fission::Action::SnapshotCreator.new @my_vm

Returns a new SnapshotCreator object

Public Instance methods

Public: Creates a snapshot for a VM. The VM must be running in order to create a snapshot. Snapshot names must be unique.

name - The desired name of the snapshot. The name must be unique.

Examples

  @creator.create_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]