Sha256: d56ebb0f839730f222b19cbcd651ca45bb74ecef544d0f21eec1ee603bc09698

Contents?: true

Size: 403 Bytes

Versions: 30

Compression:

Stored size: 403 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(service.list_interfaces(filter))
        end

        def get(name)
          self.all(:name => name).first
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
fog-libvirt-0.5.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.4.2 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.4.1 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.4.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.3.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.2.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.1.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.0.4 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.0.3 lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.0.2 lib/fog/libvirt/models/compute/interfaces.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/libvirt/models/compute/interfaces.rb
fog-libvirt-0.0.1 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.29.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.28.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.27.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.26.0 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.25.0 lib/fog/libvirt/models/compute/interfaces.rb
nsidc-fog-1.24.1 lib/fog/libvirt/models/compute/interfaces.rb
fog-1.24.0 lib/fog/libvirt/models/compute/interfaces.rb
ns-fog-1.22.11 lib/fog/libvirt/models/compute/interfaces.rb