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
|
2011-02-09 11:04:31 -05:00
|
|
|
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
|