Bug #52276

Task defined in an Application can't be removed for a deployment?

Added by Thomas Allmer about 8 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Target version:
-
Start date:
2013-09-25
Due date:
% Done:

0%

Estimated time:

Description

<?php
    $workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
    $deployment->setWorkflow($workflow);

    $node = new \TYPO3\Surf\Domain\Model\Node('[...]');
    $node->setHostname('[...]');
    $node->setOption('username', '[...]');
    $node->setOption('password', '[...]');

    $application = new \TYPO3\Surf\Application\TYPO3\Neos();

    $application->setDeploymentPath('[...]');
    $application->setOption('repositoryUrl', '[...]');

    $application->setOption('composerCommandPath', ''); //why is this needed?

    $application->setOption('packageMethod', 'git');
    $application->setOption('transferMethod', 'rsync');
    $application->setOption('updateMethod', NULL);    

    $application->setOption('keepReleases', 2);
    $application->addNode($node);

    $deployment->addApplication($application);

    // can't remove a task?
    $deployment->getWorkflow()->removeTask('typo3.surf:typo3:neos:importsite');

?>

Also available in: Atom PDF