/** * @param string $command * * @return string */ public function run($command) { if (!$this->exec) { $this->exec = $this->getSession()->getExec(); } return $this->exec->run($command); }
/** * @return bool */ private function hasDockerExtraArgs() { try { $result = $this->sshExec->run('grep EXTRA_ARGS /var/lib/boot2docker/profile'); } catch (\RuntimeException $e) { $result = null; } return !empty($result); }