Sha256: 7406c0ffddbc5e10ab55b04ce10306aec6eeef01b461ff5168c14ece7d2bb94f

Contents?: true

Size: 515 Bytes

Versions: 15

Compression:

Stored size: 515 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V3
        class Real
          def list_vm_interfaces(vm_id)
            client.vm_interfaces(vm_id).map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_vm_interfaces(_vm_id)
            xml = read_xml "nics.xml"
            Nokogiri::XML(xml).xpath("/nics/nic").map do |nic|
              ovirt_attrs OVIRT::Interface.new(self, nic)
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.5 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.4 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.3 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.2 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.1 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.1.0 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.0.4 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.0.3 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.0.2 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.0.1 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb
fog-ovirt-1.0.0 lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb