public function rollback()
    {
        foreach (array_reverse($this->taskHistory) as $historicTask) {
            $historicTask['deployment']->getLogger()->info('Rolling back ' . get_class($historicTask['task']));
            if (!$historicTask['deployment']->isDryRun()) {
                $historicTask['task']->rollback($historicTask['node'], $historicTask['application'], $historicTask['deployment'], $historicTask['options']);
            }
        }
        $this->reset();
    }
public function rollback()
    {
        foreach (array_reverse($this->taskHistory) as $historicTask) {
            $historicTask['deployment']->getLogger()->info('Rolling back ' . get_class($historicTask['task']));
            if (!$historicTask['deployment']->isDryRun()) {
                $historicTask['task']->rollback($historicTask['node'], $historicTask['application'], $historicTask['deployment'], $historicTask['options']);
            }
        }
        $this->reset();
    }
public function rollback ( ) { foreach ( array_reverse ( $ this -> taskHistory ) as $ historicTask ) { $ historicTask [ 'deployment' ] -> getLogger ( ) -> info ( 'Rolling back ' . get_class ( $ historicTask [ 'task' ] ) ) ; if ( ! $ historicTask [ 'deployment' ] -> isDryRun ( ) ) { $ historicTask [ 'task' ] -> rollback ( $ historicTask [ 'node' ] , $ historicTask [ 'application' ] , $ historicTask [ 'deployment' ] , $ historicTask [ 'options' ] ) ; } } $ this -> reset ( ) ; }
Rollback all tasks stored in the task history in reverse order
Rollback all tasks stored in the task history in reverse order