mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
549 B
Ruby
26 lines
549 B
Ruby
module Fog
|
|
module Voxel
|
|
class Compute
|
|
class Real
|
|
def voxcloud_create( options )
|
|
## TODO Remove this
|
|
options.merge! :customer_id => 1470
|
|
|
|
data = request("voxel.voxcloud.create", options)
|
|
|
|
unless data['stat'] == 'ok'
|
|
raise "Error from hAPI: #{data['err']['msg']}"
|
|
end
|
|
|
|
devices_list(data['device']['id'])
|
|
end
|
|
end
|
|
|
|
class Mock
|
|
def voxcloud_create( options )
|
|
Fog::Mock.not_implemented
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|