mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
Add timeout option for assetic:dump task
This commit is contained in:
@@ -16,6 +16,7 @@ use Symfony\Component\Process\Process;
|
||||
class RuntimeMockup extends Runtime
|
||||
{
|
||||
protected $ranCommands = [];
|
||||
protected $ranCommandTimeouts = [];
|
||||
protected $forceFail = [];
|
||||
|
||||
public function getRanCommands()
|
||||
@@ -23,6 +24,11 @@ class RuntimeMockup extends Runtime
|
||||
return $this->ranCommands;
|
||||
}
|
||||
|
||||
public function getRanCommandTimeoutFor($cmd)
|
||||
{
|
||||
return $this->ranCommandTimeouts[$cmd] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the Release ID
|
||||
*
|
||||
@@ -44,6 +50,7 @@ class RuntimeMockup extends Runtime
|
||||
public function runLocalCommand($cmd, $timeout = 120)
|
||||
{
|
||||
$this->ranCommands[] = $cmd;
|
||||
$this->ranCommandTimeouts[$cmd] = $timeout;
|
||||
|
||||
$process = new ProcessMockup($cmd);
|
||||
$process->forceFail = $this->forceFail;
|
||||
|
||||
Reference in New Issue
Block a user