Sha256: c911442801e9d9bd12921b72aa353cdd362052e95aeb3ee8f90e5dc32030826a

Contents?: true

Size: 503 Bytes

Versions: 44

Compression:

Stored size: 503 Bytes

Contents

require 'fog/core/collection'

module Fog
  module Compute
    class OpenStack
      class VolumeAttachments < Fog::Collection
        model Fog::Compute::OpenStack::VolumeAttachment

        def get(server_id)
          if server_id
            puts service.list_volume_attachments(server_id).body
            load(service.list_volume_attachments(server_id).body['volumeAttachments'])
          end
        rescue Fog::Compute::OpenStack::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

44 entries across 42 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.10 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.30 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.29 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.9 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.28 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.8 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.7 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.6 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.5 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.4 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.3 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.2 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.3.0 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.2.4 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.2.3 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.2.2 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.2.1 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.2.0 lib/fog/compute/openstack/models/volume_attachments.rb
fog-zj-0.1.28 lib/fog/compute/openstack/models/volume_attachments.rb