Skip to content

Commit f6fe8f3

Browse files
authored
Merge pull request #113 from ByteInternet/fix_regressions
Fix regressions
2 parents 4aaae03 + b3387fc commit f6fe8f3

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/DeployRunner.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,15 @@ private function initializeConfigurableTask(ConfigurableTaskInterface $task, Con
148148

149149
foreach ($configurations as $taskConfig) {
150150
if ($task->supports($taskConfig)) {
151-
$task = $task->configureWithTaskConfig($taskConfig);
151+
$deployerTask = $task->configureWithTaskConfig($taskConfig);
152152

153-
if ($task && $taskConfig instanceof ServerRoleConfigurableInterface) {
154-
$this->configureTaskOnServerRoles($task, $taskConfig);
155-
}
156-
157-
if ($task && $taskConfig instanceof StageConfigurableInterface) {
158-
$this->configureTaskOnStage($task, $taskConfig);
153+
if ($deployerTask && $taskConfig instanceof StageConfigurableInterface) {
154+
$this->configureTaskOnStage($deployerTask, $taskConfig);
159155
}
160156
}
161157
}
162158
}
163159

164-
private function configureTaskOnServerRoles(Task $task, ServerRoleConfigurableInterface $taskConfiguration)
165-
{
166-
$task->select('role=' . implode(',role=', $taskConfiguration->getServerRoles()));
167-
}
168-
169160
private function configureTaskOnStage(Task $task, StageConfigurableInterface $taskConfiguration)
170161
{
171162
if (!$taskConfiguration->getStage()) {

0 commit comments

Comments
 (0)