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