Exemplo n.º 1
0
 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);
 }