mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
452 B
Ruby
22 lines
452 B
Ruby
module Fog
|
|
module Compute
|
|
class OpenNebula
|
|
class Real
|
|
|
|
def vm_stop(id)
|
|
vmpool = ::OpenNebula::VirtualMachinePool.new(client)
|
|
vmpool.info!(-2,id,id,-1)
|
|
puts "#{vmpool.entries.class} #{vmpool.entries.methods}"
|
|
puts "#{vmpool.entries.inspect} #{vmpool.entries.methods}"
|
|
|
|
vmpool.each do |vm|
|
|
vm.stop
|
|
end
|
|
end #def vm_stop
|
|
|
|
class Mock
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|