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.27 lib/fog/compute/openstack/models/volume_attachments.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/models/volume_attachments.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/models/volume_attachments.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.26 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.25 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.24 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.23 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.22 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.21 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.20 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.19 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.18 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.17 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.15 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.14 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.13 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.12 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.11 lib/fog/compute/openstack/models/volume_attachments.rb
fog-openstack-0.1.10 lib/fog/openstack/models/compute/volume_attachments.rb