mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
488 B
Ruby
24 lines
488 B
Ruby
module Fog
|
|
module Compute
|
|
class Voxel
|
|
class Real
|
|
|
|
require 'fog/voxel/parsers/compute/devices_list'
|
|
|
|
def devices_list(device_id = nil)
|
|
options = {
|
|
:parser => Fog::Parsers::Compute::Voxel::DevicesList.new,
|
|
:verbosity => 'normal'
|
|
}
|
|
|
|
unless device_id.nil?
|
|
options[:device_id] = device_id
|
|
end
|
|
|
|
request("voxel.devices.list", options)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|