Sha256: f9394ca448cb306a0e97850ddb5e0a3fe1c717fad42528d56e4b4c0d70151dad

Contents?: true

Size: 466 Bytes

Versions: 9

Compression:

Stored size: 466 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V4
        class Real
          def get_virtual_machine(id)
            ovirt_attrs client.system_service.vms_service.vm_service(id).get(:all_content => true)
          end
        end
        class Mock
          def get_virtual_machine(_id)
            xml = read_xml "vm.xml"
            ovirt_attrs OvirtSDK4::Reader.read(Nokogiri::XML(xml).root.to_s)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-ovirt-2.0.2 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-2.0.1 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-2.0.0 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb