private void doDeploy ( final Message < JsonObject > message ) { String type = message . body ( ) . getString ( "type" ) ; if ( type == null ) { message . reply ( new JsonObject ( ) . putString ( "status" , "error" ) . putString ( "message" , "No deployment type specified." ) ) ; } else { switch ( type ) { case "module" : doDeployModule ( message ) ; break ; case "verticle" : doDeployVerticle ( message ) ; break ; default : message . reply ( new JsonObject ( ) . putString ( "status" , "error" ) . putString ( "message" , "Invalid deployment type." ) ) ; break ; } } }
Deploys a module or verticle .