private function getLastRelease($config)
 {
     $currentPath = Utils::joinPaths($config['document_root'], self::CURRENT_DIR);
     try {
         $releasesStr = $this->remoteCommand("readlink {$currentPath}");
         if ($releasesStr != '') {
             return $releasesStr;
         }
         return null;
     } catch (\RuntimeException $e) {
         return null;
     }
 }
Exemple #2
0
 /**
  * @test
  */
 public function test4()
 {
     $this->assertEquals('first/second', Utils::joinPaths('first', 'second'));
 }