Skip to content

Commit 5d57faa

Browse files
authored
Merge pull request #80 from ByteInternet/remove_roles_selector_from_builtin_tasks
2 parents d9d4dc6 + 018af56 commit 5d57faa

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Deployer/TaskBuilder.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use Deployer\Task\Task;
99
use Hypernode\DeployConfiguration\Command\Command;
1010
use Hypernode\DeployConfiguration\Command\DeployCommand;
11-
use Hypernode\DeployConfiguration\Configurable\ServerRoleConfigurableInterface;
12-
use Hypernode\DeployConfiguration\Configurable\StageConfigurableInterface;
1311
use Hypernode\DeployConfiguration\TaskConfigurationInterface;
1412

1513
use function Deployer\parse;
@@ -54,15 +52,6 @@ private function build(Command $command, string $name): Task
5452
$this->runCommandWithin($command);
5553
});
5654

57-
if ($command instanceof StageConfigurableInterface && $command->getStage()) {
58-
$task->select("stage={$command->getStage()->getName()}");
59-
}
60-
61-
if ($command instanceof ServerRoleConfigurableInterface && $command->getServerRoles()) {
62-
$roles = implode("&", $command->getServerRoles());
63-
$task->select("roles=$roles");
64-
}
65-
6655
return $task;
6756
}
6857

0 commit comments

Comments
 (0)