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