Method: Fog::Compute::OpenStack::Volume#attach
- Defined in:
- lib/rackspace-fog/openstack/models/compute/volume.rb
#attach(server_id, name) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/rackspace-fog/openstack/models/compute/volume.rb', line 41 def attach(server_id, name) requires :id data = connection.attach_volume(id, server_id, name) merge_attributes(:attachments => << data.body['volumeAttachment']) true end |