public function runCommand($hostDetails, $command) { // get an SSH client $client = $this->getClient($this->st, $hostDetails); // run the command return $client->runCommand($command); }