}
@Descriptor("execute a continuous deployment cycle")
public static List<CommandResource> cd(CommandRepo releaseRepo, CommandRepo sourceRepo, CommandRepo targetRepo) throws Exception {
FixedIndexedRepo relRepo = releaseRepo.repo();
FixedIndexedRepo srcRepo = sourceRepo.repo();
FixedIndexedRepo tgtRepo = targetRepo.repo();
relRepo.reset();
srcRepo.reset();
tgtRepo.reset();
ContinuousDeployer cd = new ContinuousDeployer(tgtRepo, srcRepo, relRepo);
try {
List<Resource> deployedResources = cd.deployResources();
return CommandResource.wrap(targetRepo, deployedResources);