From 3e1b1c4514dad15098e94553c700a8745505ea5a Mon Sep 17 00:00:00 2001 From: poespas Date: Tue, 27 Oct 2026 11:26:56 +0100 Subject: [PATCH] apply stage selector to Tideways and Rumvision tasks --- src/Deployer/Task/After/AfterTaskGlobal.php | 2 +- src/Deployer/Task/After/RumvisionTask.php | 3 ++- src/Deployer/Task/After/TidewaysTask.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Deployer/Task/After/AfterTaskGlobal.php b/src/Deployer/Task/After/AfterTaskGlobal.php index d9cdc14..ccab9db 100644 --- a/src/Deployer/Task/After/AfterTaskGlobal.php +++ b/src/Deployer/Task/After/AfterTaskGlobal.php @@ -34,7 +34,7 @@ public function configure(Configuration $config): void $tasks = $this->taskBuilder->buildAll($commands, 'deploy:after'); if (count($tasks) === 0) { $tasks = function (): void { - writeln('No after deploy tasks defined'); + writeln('No after deploy commands configured'); }; } diff --git a/src/Deployer/Task/After/RumvisionTask.php b/src/Deployer/Task/After/RumvisionTask.php index 79ff71f..52cf62c 100644 --- a/src/Deployer/Task/After/RumvisionTask.php +++ b/src/Deployer/Task/After/RumvisionTask.php @@ -2,6 +2,7 @@ namespace Hypernode\Deploy\Deployer\Task\After; +use Deployer\Deployer; use Deployer\Task\Task; use Hypernode\DeployConfiguration\RecipeLoader; use Hypernode\Deploy\Deployer\Task\ConfigurableTaskInterface; @@ -48,7 +49,7 @@ public function configureWithTaskConfig(TaskConfigurationInterface $config): ?Ta 'category_slug' => $config->getCategorySlug(), ]); - return null; + return Deployer::get()->tasks->get('deploy:rumvision'); } public function register(): void diff --git a/src/Deployer/Task/After/TidewaysTask.php b/src/Deployer/Task/After/TidewaysTask.php index 90f5118..7270f12 100644 --- a/src/Deployer/Task/After/TidewaysTask.php +++ b/src/Deployer/Task/After/TidewaysTask.php @@ -2,6 +2,7 @@ namespace Hypernode\Deploy\Deployer\Task\After; +use Deployer\Deployer; use Deployer\Task\Task; use Hypernode\DeployConfiguration\RecipeLoader; use Hypernode\Deploy\Deployer\Task\ConfigurableTaskInterface; @@ -47,7 +48,7 @@ public function configureWithTaskConfig(TaskConfigurationInterface $config): ?Ta 'compareAfterMinutes' => $config->getCompareAfterMinutes(), ]); - return null; + return Deployer::get()->tasks->get('deploy:tideways'); } public function register(): void