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/opennebula/requests/compute/vm_stop.rb
2014-06-16 08:32:29 +02:00

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