예제 #1
0
 public static function newFromCommandException(CommandException $ex)
 {
     $error = new self();
     $error->command = (string) $ex->getCommand();
     $error->error = $ex->getError();
     $error->stdout = $ex->getStdout();
     $error->stderr = $ex->getStderr();
     return $error;
 }
 protected function setWorkingCopyVCSErrorFromCommandException(DrydockLease $lease, $phase, $command, CommandException $ex)
 {
     $error = array('phase' => $phase, 'command' => (string) $command, 'raw' => (string) $ex->getCommand(), 'err' => $ex->getError(), 'stdout' => $ex->getStdout(), 'stderr' => $ex->getStderr());
     $lease->setAttribute('workingcopy.vcs.error', $error);
 }
예제 #3
0
 public static function newFromCommandException($phase, $command, CommandException $ex)
 {
     $error = array('phase' => $phase, 'command' => (string) $command, 'raw' => (string) $ex->getCommand(), 'err' => $ex->getError(), 'stdout' => $ex->getStdout(), 'stderr' => $ex->getStderr());
     return $error;
 }