Fixes and tweaks.

This commit is contained in:
Andrés Montañez
2014-08-06 14:17:26 -03:00
parent fddeebe59a
commit ec2bb12bf4
6 changed files with 8 additions and 18 deletions
+2 -2
View File
@@ -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();
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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();
}
}