mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 17:08:56 +02:00
Fixes and tweaks.
This commit is contained in:
@@ -421,11 +421,11 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
|
||||
/**
|
||||
* Runs a Task
|
||||
*
|
||||
* @param string $task
|
||||
* @param AbstractTask $task
|
||||
* @param string $title
|
||||
* @return boolean
|
||||
*/
|
||||
protected function runTask($task, $title = null)
|
||||
protected function runTask(AbstractTask $task, $title = null)
|
||||
{
|
||||
$task->init();
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ class ReleasesCommand extends AbstractCommand implements RequiresEnvironment
|
||||
}
|
||||
|
||||
$releaseId = $this->getConfig()->getParameter('release', '');
|
||||
$this->getConfig()->setReleaseId($releaseId);
|
||||
$task = Factory::get('releases/rollback', $this->getConfig());
|
||||
$task->init();
|
||||
$task->setRelease($releaseId);
|
||||
$result = $task->run();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -51,9 +51,9 @@ class RollbackCommand extends AbstractCommand implements RequiresEnvironment
|
||||
foreach ($hosts as $host) {
|
||||
$this->getConfig()->setHost($host);
|
||||
|
||||
$this->getConfig()->setReleaseId($releaseId);
|
||||
$task = Factory::get('releases/rollback', $this->getConfig());
|
||||
$task->init();
|
||||
$task->setRelease($releaseId);
|
||||
$result = $task->run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user