Sha256: f40fed8190107c32f6090581833864d4107ef16f76e158ddfe3a994d422429bd

Contents?: true

Size: 437 Bytes

Versions: 30

Compression:

Stored size: 437 Bytes

Contents

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

module Fog
  module Compute
    class Libvirt
      class Servers < Fog::Collection
        model Fog::Compute::Libvirt::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

30 entries across 30 versions & 5 rubygems

Version Path
ns-fog-1.22.10 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.9 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.8 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.7 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.6 lib/fog/libvirt/models/compute/servers.rb
fog-1.23.0 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.4 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.3 lib/fog/libvirt/models/compute/servers.rb
ns-fog-1.22.2 lib/fog/libvirt/models/compute/servers.rb
fog-1.22.1 lib/fog/libvirt/models/compute/servers.rb