2011-01-19 17:07:04 -05:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class Voxel
|
2011-01-19 17:07:04 -05:00
|
|
|
class Real
|
2011-02-25 15:31:56 -05:00
|
|
|
|
2011-08-24 21:04:55 -04:00
|
|
|
require 'fog/voxel/parsers/compute/devices_list'
|
2011-02-25 15:31:56 -05:00
|
|
|
|
2011-02-23 18:00:56 -05:00
|
|
|
def devices_list(device_id = nil)
|
|
|
|
options = {
|
2011-06-16 19:28:54 -04:00
|
|
|
:parser => Fog::Parsers::Compute::Voxel::DevicesList.new,
|
2011-02-23 18:00:56 -05:00
|
|
|
: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
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|