mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
518 B
Ruby
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
|