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/devices_list.rb

27 lines
547 B
Ruby
Raw Normal View History

2011-01-19 17:07:04 -05:00
module Fog
module Voxel
class Compute
class Real
2011-02-23 18:00:56 -05:00
def devices_list(device_id = nil)
options = {
:parser => Fog::Parsers::Voxel::Compute::DevicesList.new,
:verbosity => 'normal'
}
2011-01-19 17:07:04 -05:00
unless device_id.nil?
options[:device_id] = device_id
end
2011-02-23 18:00:56 -05:00
request("voxel.devices.list", options)
2011-01-19 17:07:04 -05:00
end
end
class Mock
def devices_list( device_id = nil)
2011-02-23 18:00:56 -05:00
Fog::Mock.not_implemented
2011-01-19 17:07:04 -05:00
end
end
end
end
end