Sha256: db6d7db024c34ba6a500e3f416f766b3d442dc3071548c73772382a2e98b9514

Contents?: true

Size: 410 Bytes

Versions: 14

Compression:

Stored size: 410 Bytes

Contents

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

module Fog
  module Compute
    class Libvirt

      class Interfaces < Fog::Collection

        model Fog::Compute::Libvirt::Interface

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

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