Sha256: 41b49d48f32d46b8040aea847ab65ea3feec8f5f8e8e5e839643636a01e359ba

Contents?: true

Size: 397 Bytes

Versions: 14

Compression:

Stored size: 397 Bytes

Contents

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

module Fog
  module Compute
    class Libvirt

      class Volumes < Fog::Collection

        model Fog::Compute::Libvirt::Volume

        def all(filter = {})
          load(connection.list_volumes(filter))
        end

        def get(key)
          self.all(:key => key).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/volumes.rb
fog-nirvanix-1.8.1 lib/fog/libvirt/models/compute/volumes.rb
fog-parser-fix-1.6.1 lib/fog/libvirt/models/compute/volumes.rb
fog-test-again-1.6.0 lib/fog/libvirt/models/compute/volumes.rb
fog-parser-fix-1.6.0 lib/fog/libvirt/models/compute/volumes.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/libvirt/models/compute/volumes.rb
fog-sgonyea-1.8.1 lib/fog/libvirt/models/compute/volumes.rb
fog-1.8.0 lib/fog/libvirt/models/compute/volumes.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/libvirt/models/compute/volumes.rb
fog-1.7.0 lib/fog/libvirt/models/compute/volumes.rb
fog-1.6.0 lib/fog/libvirt/models/compute/volumes.rb
fog-1.5.0 lib/fog/libvirt/models/compute/volumes.rb
fog-1.4.0 lib/fog/libvirt/models/compute/volumes.rb
michiels-fog-1.3.1 lib/fog/libvirt/models/compute/volumes.rb