Sha256: 0f6140770bd6e5fcde042e474460b5ebbe19b760ce6a07c17f7c837b59f65b0b

Contents?: true

Size: 422 Bytes

Versions: 28

Compression:

Stored size: 422 Bytes

Contents

module Fog
  module Compute
    class OpenNebula
      class Real
        def vm_destroy(id)
          vmpool = ::OpenNebula::VirtualMachinePool.new(client)
	  vmpool.info!(-2,id,id,-1)
          
	  vmpool.each do |vm|
            # true => delete and recreate vm
	    vm.delete(false)
          end
        end
      end
      class Mock
        def vm_destroy(id)
          true
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
ns-fog-1.22.9 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.8 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.7 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.6 lib/fog/opennebula/requests/compute/vm_destroy.rb
fog-1.23.0 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.4 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.3 lib/fog/opennebula/requests/compute/vm_destroy.rb
ns-fog-1.22.2 lib/fog/opennebula/requests/compute/vm_destroy.rb