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

27 lines
549 B
Ruby
Raw Normal View History

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