From 018af56d6a7d74787427a396d3ce313b24122d9a Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Wed, 4 Jan 2023 11:05:08 +0100 Subject: [PATCH] Remove roles selector from builtin tasks in TaskBuilder --- src/Deployer/TaskBuilder.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Deployer/TaskBuilder.php b/src/Deployer/TaskBuilder.php index 83cc2db..d97e767 100644 --- a/src/Deployer/TaskBuilder.php +++ b/src/Deployer/TaskBuilder.php @@ -8,8 +8,6 @@ use Deployer\Task\Task; use Hypernode\DeployConfiguration\Command\Command; use Hypernode\DeployConfiguration\Command\DeployCommand; -use Hypernode\DeployConfiguration\Configurable\ServerRoleConfigurableInterface; -use Hypernode\DeployConfiguration\Configurable\StageConfigurableInterface; use Hypernode\DeployConfiguration\TaskConfigurationInterface; use function Deployer\parse; @@ -54,15 +52,6 @@ private function build(Command $command, string $name): Task $this->runCommandWithin($command); }); - if ($command instanceof StageConfigurableInterface && $command->getStage()) { - $task->select("stage={$command->getStage()->getName()}"); - } - - if ($command instanceof ServerRoleConfigurableInterface && $command->getServerRoles()) { - $roles = implode("&", $command->getServerRoles()); - $task->select("roles=$roles"); - } - return $task; }