1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb
2014-12-13 14:18:25 +01:00

19 lines
518 B
Ruby

module Fog
module Compute
class Ovirt
class Real
def vm_start_with_cloudinit(options = {})
raise ArgumentError, "instance id is a required parameter" unless options.key? :id
client.vm_start_with_cloudinit(options[:id], options[:user_data])
end
end
class Mock
def vm_start_with_cloudinit(options = {})
raise ArgumentError, "instance id is a required parameter" unless options.key? :id
true
end
end
end
end
end