Sha256: 69e0b729707ce73bb7d550f769166c50b9338f2d0974852183332b1418c8462e

Contents?: true

Size: 437 Bytes

Versions: 14

Compression:

Stored size: 437 Bytes

Contents

require 'fog/core/collection'
require 'fog/libvirt/models/compute/server'

module Fog
  module Libvirt
    class Compute
      class Servers < Fog::Collection
        model Fog::Libvirt::Compute::Server

        def all(filter={})
          load(service.list_domains(filter))
        end

        def get(uuid)
          data = service.list_domains(:uuid => uuid)
          new data.first if data
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
fog-libvirt-0.13.2 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.13.1 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.13.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.12.2 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.12.1 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.12.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.11.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.10.1 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.10.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-csem-0.9.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.9.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.8.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.7.0 lib/fog/libvirt/models/compute/servers.rb
fog-libvirt-0.6.0 lib/fog/libvirt/models/compute/servers.rb