Sha256: d57085c85f9688b0d96d41665cd4ab72ef306f13cafd46f984d1ce8f1422c75f

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

module Dcmgr
  module Drivers
    class Hypervisor

      def run_instance(hc)
      end

      def terminate_instance(hc)
      end

      def reboot_instance(hc)
      end

      def attach_volume_to_guest(hc)
      end

      def detach_volume_from_guest(hc)
      end

      def self.select_hypervisor(hypervisor)
        case hypervisor
        when "kvm"
          hv = Dcmgr::Drivers::Kvm.new
        when "lxc"
          hv = Dcmgr::Drivers::Lxc.new
        else
          raise "Unknown hypervisor type: #{hypervisor}"
        end
        hv
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
wakame-vdc-agents-11.12.0 lib/dcmgr/drivers/hypervisor.rb
wakame-vdc-dcmgr-11.12.0 lib/dcmgr/drivers/hypervisor.rb
wakame-vdc-agents-11.06.0 lib/dcmgr/drivers/hypervisor.rb
wakame-vdc-dcmgr-11.06.0 lib/dcmgr/drivers/hypervisor.rb