Esempio n. 1
0
 /**
  * @param string $command
  *
  * @return string
  */
 public function run($command)
 {
     if (!$this->exec) {
         $this->exec = $this->getSession()->getExec();
     }
     return $this->exec->run($command);
 }
Esempio n. 2
0
 /**
  * @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);
 }