Sha256: 7b2ea59db5dd444868feb747686a774ed64a2c7824ab922b36290fb8c33ee523

Contents?: true

Size: 392 Bytes

Versions: 14

Compression:

Stored size: 392 Bytes

Contents

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

module Fog
  module Compute
    class Libvirt

      class Pools < Fog::Collection

        model Fog::Compute::Libvirt::Pool

        def all(filter = {})
          load(connection.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 & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/libvirt/models/compute/pools.rb
fog-nirvanix-1.8.1 lib/fog/libvirt/models/compute/pools.rb
fog-parser-fix-1.6.1 lib/fog/libvirt/models/compute/pools.rb
fog-test-again-1.6.0 lib/fog/libvirt/models/compute/pools.rb
fog-parser-fix-1.6.0 lib/fog/libvirt/models/compute/pools.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/libvirt/models/compute/pools.rb
fog-sgonyea-1.8.1 lib/fog/libvirt/models/compute/pools.rb
fog-1.8.0 lib/fog/libvirt/models/compute/pools.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/libvirt/models/compute/pools.rb
fog-1.7.0 lib/fog/libvirt/models/compute/pools.rb
fog-1.6.0 lib/fog/libvirt/models/compute/pools.rb
fog-1.5.0 lib/fog/libvirt/models/compute/pools.rb
fog-1.4.0 lib/fog/libvirt/models/compute/pools.rb
michiels-fog-1.3.1 lib/fog/libvirt/models/compute/pools.rb