Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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