Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function test4()
 {
     $this->assertEquals('first/second', Utils::joinPaths('first', 'second'));
 }