# File lib/rudy/aws/ec2/volume.rb, line 101 101: def detach(vol_id) 102: vol_id = Volumes.get_vol_id(vol_id) 103: raise NoVolumeID unless vol_id 104: raise VolumeNotAttached, vol_id unless attached?(vol_id) 105: ret = Rudy::AWS::EC2.execute_request({}) { 106: @@ec2.detach_volume(:volume_id => vol_id) 107: } 108: (ret['status'] == 'detaching') 109: end