Class Fission::Action::VM::Cloner
In: lib/fission/action/vm/cloner.rb
Parent: Object

Methods

clone   new  

Public Class methods

Internal: Creates a new VMCloner object. This accepts a source and target VM object.

source_vm - An instance of VM target_vm - An instance of VM

Examples:

  Fission::Action::VMCloner.new @my_source_vm, @my_target_vm

Returns a new VMCloner object.

Public Instance methods

Public: Creates a new VM which is a clone of an existing VM. As Fusion doesn‘t provide a native cloning mechanism, this is a best effort. This essentially is a directory copy with updates to relevant files. It‘s recommended to clone VMs which are not running.

Examples

  @cloner.clone

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]