Ejemplo n.º 1
0
 private function moveProjectFiles($old_name, $new_name, Git_Gitolite_GitModifications $git_modifications, Project $project)
 {
     $old_file = 'conf/projects/' . $old_name . '.conf';
     $new_file = 'conf/projects/' . $new_name . '.conf';
     $this->proceedToFileMove($old_file, $new_file, $git_modifications);
     if (!$this->gitoliterc_reader->getHostname()) {
         return;
     }
     $mirrors = $this->mirror_data_mapper->fetchAllForProject($project);
     foreach ($mirrors as $mirror) {
         $this->moveProjectFileForMirror($old_name, $new_name, $git_modifications, $mirror);
     }
 }
 private function doesHostnameIsForbidden($hostname)
 {
     return strtolower($hostname) === self::PROJECTS_HOSTNAME || strtolower($hostname) === strtolower($this->reader->getHostname());
 }