Skip to content

Commit

Permalink
Merge pull request #113 from ByteInternet/fix_regressions
Browse files Browse the repository at this point in the history
Fix regressions
  • Loading branch information
tdgroot authored Jul 4, 2024
2 parents 4aaae03 + b3387fc commit f6fe8f3
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/DeployRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,15 @@ private function initializeConfigurableTask(ConfigurableTaskInterface $task, Con

foreach ($configurations as $taskConfig) {
if ($task->supports($taskConfig)) {
$task = $task->configureWithTaskConfig($taskConfig);
$deployerTask = $task->configureWithTaskConfig($taskConfig);

if ($task && $taskConfig instanceof ServerRoleConfigurableInterface) {
$this->configureTaskOnServerRoles($task, $taskConfig);
}

if ($task && $taskConfig instanceof StageConfigurableInterface) {
$this->configureTaskOnStage($task, $taskConfig);
if ($deployerTask && $taskConfig instanceof StageConfigurableInterface) {
$this->configureTaskOnStage($deployerTask, $taskConfig);
}
}
}
}

private function configureTaskOnServerRoles(Task $task, ServerRoleConfigurableInterface $taskConfiguration)
{
$task->select('role=' . implode(',role=', $taskConfiguration->getServerRoles()));
}

private function configureTaskOnStage(Task $task, StageConfigurableInterface $taskConfiguration)
{
if (!$taskConfiguration->getStage()) {
Expand Down

0 comments on commit f6fe8f3

Please sign in to comment.