Vicekung Don Marco Rubio, konsul i Caracus, armégeneralen