Sha256: 4820c4755fc03a8e3f8788da505913c1763e167d6b454ac452e7c9e916d3d6c7
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 Bytes
Contents
module Fog module Compute class Vsphere class Real def revert_to_snapshot(snapshot) unless Snapshot === snapshot raise ArgumentError, 'snapshot is a required parameter' end task = snapshot.mo_ref.RevertToSnapshot_Task task.wait_for_completion { 'state' => task.info.state } end end class Mock def revert_to_snapshot(snapshot) raise ArgumentError, 'snapshot is a required parameter' if snapshot.nil? { 'state' => 'success' } end end end end end
Version data entries
7 entries across 5 versions & 2 rubygems