2011-02-23 18:00:56 -05:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class Voxel
|
2011-02-23 18:00:56 -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/basic'
|
2011-02-25 15:31:56 -05:00
|
|
|
|
2011-02-23 18:00:56 -05:00
|
|
|
def devices_power(device_id, power_action)
|
|
|
|
options = {
|
|
|
|
:device_id => device_id,
|
2011-06-16 19:28:54 -04:00
|
|
|
:parser => Fog::Parsers::Compute::Voxel::Basic.new,
|
2011-02-23 18:00:56 -05:00
|
|
|
:power_action => power_action,
|
|
|
|
:verbosity => 'normal'
|
|
|
|
}
|
|
|
|
|
|
|
|
request("voxel.devices.power", options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|