Method: HP::Cloud::VolumeHelper#attach
- Defined in:
- lib/hpcloud/volume_helper.rb
#attach(server, device) ⇒ Object
82 83 84 85 86 87 88 89 90 |
# File 'lib/hpcloud/volume_helper.rb', line 82 def attach(server, device) begin @fog.attach(server.id, device) rescue Exception => e set_error("Error attaching '#{name}' on server '#{server.name}' to device '#{device}'.") return false end return true end |