Sha256: 7068371536dfa4dc2d023c3210d3a5313d0df94d0b4881c32e1e5a4a019c740c

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V3
        class Real
          def list_operating_systems
            client.operating_systems.map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_operating_systems
            xml = read_xml "operating_systems.xml"
            Nokogiri::XML(xml).xpath("/operating_systems/operating_system").map do |os|
              ovirt_attrs OVIRT::OperatingSystem.new(self, os)
            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_operating_systems.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb