Sha256: cbd48ad0bf2de4fc1ab0dba0c890ef154ce8dd11bef5915437049bea5ba1acea

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V3
        class Real
          def list_virtual_machines(filters = {})
            client.vms(filters).map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_virtual_machines(_filters = {})
            xml = read_xml "vms.xml"
            Nokogiri::XML(xml).xpath("/vms/vm").map do |vm|
              ovirt_attrs OVIRT::VM.new(self, vm)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb