Skip to content

Commit bf3c89e

Browse files
committed
fix: update deployment steps following api refactor
1 parent 0c851e8 commit bf3c89e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Deployment/StartAndMonitorDeploymentStep.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function perform(int $deploymentId, OutputStyle $output)
5151
$steps = $this->getDeploymentSteps($deploymentId);
5252

5353
foreach ($steps as $step) {
54-
$output->writeStep($this->getFormattedDeploymentStepName($step['job']));
54+
$output->writeStep($this->getFormattedDeploymentStepName($step['task']));
5555
$this->waitForDeploymentStepToFinish($deploymentId, $step['id']);
5656
}
5757
}
@@ -69,7 +69,7 @@ private function getDeploymentSteps(int $deploymentId): Collection
6969
*/
7070
private function getFormattedDeploymentStepName(string $jobName): string
7171
{
72-
return ucfirst(strtr(strtolower((string) preg_replace(['/(.)(?=[A-Z])/u', '/Job$/'], ['$1 ', ''], $jobName)), [
72+
return ucfirst(strtr(strtolower((string) preg_replace(['/(.)(?=[A-Z])/u', '/(Job|Task)$/'], ['$1 ', ''], $jobName)), [
7373
'api' => 'API',
7474
'assign' => 'assigning',
7575
'create' => 'creating',
@@ -82,6 +82,7 @@ private function getFormattedDeploymentStepName(string $jobName): string
8282
'set' => 'setting',
8383
'ssl' => 'SSL',
8484
'update' => 'updating',
85+
'warm' => 'warming',
8586
]));
8687
}
8788

0 commit comments

Comments
 (0)