public function itAsksToDeleteTheRepositoryFromTheManifestsWhereTheRepositoryIsNotMirrored() { stub($this->data_mapper)->fetchAllRepositoryMirrors()->returns(array($this->noida_mirror)); expect($this->generator)->addRepositoryToManifestFile($this->noida_mirror, $this->repository)->once(); expect($this->generator)->removeRepositoryFromManifestFile($this->singapour_mirror, $this->repository->getPath())->once(); $this->manager->triggerUpdate($this->repository); }
public function process() { $repository = $this->getRepositoryFromParameters(); if (!$repository) { $this->warning('Unable to find repository, perhaps it was deleted in the mean time?'); return false; } $this->manifest_manager->triggerUpdate($repository); $this->done(); }