# File lib/rudy/metadata/disk.rb, line 111 111: def destroy(force=false) 112: if @volid && !volume_deleting? 113: if !force 114: raise Rudy::AWS::EC2::VolumeNotAvailable, @volid if volume_attached? 115: else 116: volume_detach if volume_exists? && volume_attached? 117: sleep 0.1 118: end 119: raise Rudy::AWS::EC2::VolumeNotAvailable, @volid if volume_in_use? 120: Rudy::AWS::EC2::Volumes.destroy(@volid) if volume_exists? && volume_available? 121: end 122: super() # quotes, otherwise Ruby will send this method's args 123: end