Sha256: c4c9a9380aea1271ef9e77f5efb4ab08ac458ef3f0808329576df3bc9b4f2e57

Contents?: true

Size: 385 Bytes

Versions: 14

Compression:

Stored size: 385 Bytes

Contents

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

module Fog
  module Libvirt
    class Compute
      class Pools < Fog::Collection
        model Fog::Libvirt::Compute::Pool

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

        def get(uuid)
          self.all(:uuid => uuid).first
        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/pools.rb
fog-libvirt-0.13.1 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.13.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.12.2 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.12.1 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.12.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.11.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.10.1 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.10.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-csem-0.9.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.9.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.8.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.7.0 lib/fog/libvirt/models/compute/pools.rb
fog-libvirt-0.6.0 lib/fog/libvirt/models/compute/pools.rb