Sha256: 2b160259195fc1a7b602002fed02eb11d1945dd8e74f540ad39df49acec3ce13
Contents?: true
Size: 640 Bytes
Versions: 46
Compression:
Stored size: 640 Bytes
Contents
module Fog module Compute class Vsphere class Real def revert_to_snapshot(snapshot) unless Snapshot === snapshot fail 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) fail ArgumentError, 'snapshot is a required parameter' if snapshot.nil? { 'state' => 'success' } end end end end end
Version data entries
46 entries across 46 versions & 2 rubygems