/** * Register tasks for this application * * @param \TYPO3\Surf\Domain\Model\Workflow $workflow * @param \TYPO3\Surf\Domain\Model\Deployment $deployment * @return void */ public function registerTasks(Workflow $workflow, Deployment $deployment) { $workflow->addTask(array('famelo.surf.sharedhosting:patchflow', 'famelo.surf.sharedhosting:patchsettings', 'famelo.surf.sharedhosting:setdefaultcontext'), 'update'); parent::registerTasks($workflow, $deployment); $workflow->beforeTask('typo3.surf:transfer:rsync', array('famelo.surf.sharedhosting:beardpatch'), $this); $workflow->afterStage('update', array('famelo.surf.sharedhosting:symlinkconfiguration'), $this); $workflow->removeTask('typo3.surf:typo3:flow:symlinkconfiguration'); }
/** * Add support for updateMethod "composer" * * @param \TYPO3\Surf\Domain\Model\Workflow $workflow * @param string $updateMethod * @return void */ protected function registerTasksForUpdateMethod(Workflow $workflow, $updateMethod) { switch ($updateMethod) { case 'composer': $workflow->addTask('TYPO3\\Surf\\Task\\Composer\\InstallTask', 'update', $this); break; default: parent::registerTasksForUpdateMethod($workflow, $updateMethod); break; } }
/** * @param \TYPO3\Surf\Domain\Model\Workflow $workflow * @param string $transferMethod * @return void */ protected function registerTasksForTransferMethod(Workflow $workflow, $transferMethod) { switch ($transferMethod) { case 'git': $workflow->addTask('TYPO3\\Surf\\Task\\GitCheckoutTask', 'transfer', $this); break; case 'rsync': $workflow->addTask('TYPO3\\Surf\\Task\\Transfer\\RsyncTask', 'transfer', $this); break; case 'scp': // TODO break; case 'ftp': // TODO break; } }