joshua scrambled over to the gates shuttering the generator from the rest of the structure and tore them open , his eyes descending on the mass of cables and wires leading from the diesel barrels at its side to the main control panel .