Sha256: 3a086f485f72084f743de9fd8b1c9a72f857a39c12eb7817f64790f824625fe0
Contents?: true
Size: 936 Bytes
Versions: 15
Compression:
Stored size: 936 Bytes
Contents
module Fog module Compute class Ovirt class V3 module Shared def check_arguments(id, options) raise ArgumentError, "instance id is a required parameter" unless id raise ArgumentError, "disk id is a required parameter for update-volume" unless options.key? :id end end class Real extend ::Fog::Compute::Ovirt::V3::Shared def update_volume(id, options) check_arguments(id, options) disk_id = options[:id] options.delete(:id) client.update_volume(id, disk_id, options) true # If we come here, expect success and return true end end class Mock extend ::Fog::Compute::Ovirt::V3::Shared def update_volume(id, options) check_arguments(id, options) true end end end end end end
Version data entries
15 entries across 13 versions & 2 rubygems