You are here

protected function RoboFile::runProcess in Panopoly 7

Runs Drush directly (not via Robo's ExecTask).

This should primarily be used for gathering information, and not performing build steps - that should be done via Robo's ExecTask when possible.

This doesn't throw an exception when the process errors - you need to check the exit code (via `$process->getExitCode()`) to see if it succeeded.

Parameters

string $command: The Drush command and arguments to run.

string|null $cwd: The working directory.

array|null $env: The environment.

string|null $input: The standard input.

int|null $timeout: The timeout.

Return value

\Symfony\Component\Process\Process The executed Process object.

File

./RoboFile.php, line 122

Class

RoboFile
This is project's console commands configuration for Robo task runner.

Code

protected function runProcess($command, $cwd = NULL, array $env = NULL, $input = NULL, $timeout = NULL) {
  $process = new Process($command, $cwd, $env, $input, $timeout);
  $process
    ->run();
  return $process;
}