# File lib/rudy/cli/aws/ec2/volumes.rb, line 81
81:     def volumes_detach
82:       raise "Volume #{@argv.volid} does not exist" unless Rudy::AWS::EC2::Volumes.exists?(@argv.volid)
83:       vol = Rudy::AWS::EC2::Volumes.get(@argv.volid)
84:       raise "Volume #{vol.awsid} is not attached" unless vol.attached?
85:       
86:       li "Detaching #{vol.awsid} from #{vol.instid}"
87:       execute_check(:medium)
88:       execute_action("Detach Failed") { Rudy::AWS::EC2::Volumes.detach(vol.awsid) }
89:       
90:       vol = Rudy::AWS::EC2::Volumes.get(vol.awsid)
91:       li @global.verbose > 1 ? vol.inspect : vol.dump(@@global.format)
92:     end