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/compute/requests/voxel/voxcloud_create.rb
2011-02-23 15:38:41 -08:00

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