[NEXUS-5957] Put back regenerate method as it is needed in yum pro plugin

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>