Skip to content

Commit

Permalink
Merge pull request #80 from ByteInternet/remove_roles_selector_from_b…
Browse files Browse the repository at this point in the history
…uiltin_tasks
  • Loading branch information
tdgroot authored Jan 4, 2023
2 parents d9d4dc6 + 018af56 commit 5d57faa
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Deployer/TaskBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d57faa

Please sign in to comment.