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

23 lines
486 B
Ruby
Raw Normal View History

2011-01-19 17:07:04 -05:00
module Fog
module Compute
class Voxel
2011-01-19 17:07:04 -05:00
class Real
require 'fog/voxel/parsers/compute/devices_list'
2011-02-23 18:00:56 -05:00
def devices_list(device_id = nil)
options = {
: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