コード例 #1
0
ファイル: Server.php プロジェクト: fiunchinho/plumber
 public function executeCommand($command)
 {
     $this->ssh->connect($this->getHost(), $this->getPort());
     $this->ssh->authenticate($this->getUser(), $this->getPublicKey(), $this->getPrivateKey());
     return $this->ssh->execute('cd ' . $this->getDir() . ' && ' . $command);
 }