TYPO3\Surf\Task\Git\PushTask

class PushTask

A task which can push to a git remote

It takes the following options:

  • remote - The git remote to use.
  • refspec - The refspec to push.
  • recurseIntoSubmodules (optional) - If true, push submodules as well.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskGitPushTask’, [
‘remote’ => ‘git@github.com:TYPO3/Surf.git’, ‘refspec’ => ‘master’, ‘recurseIntoSubmodules’ => true

]

);

property shell

protected ShellCommandService

execute(Node $node, Application $application, Deployment $deployment, $options = [])

Execute this task

Parameters:
simulate(Node $node, Application $application, Deployment $deployment, $options = [])

Simulate this task

Parameters:
setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
rollback(Node $node, Application $application, Deployment $deployment, $options = [])

Rollback this task

Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array

resolveOptions(OptionsResolver $resolver)
Parameters:
  • $resolver (OptionsResolver) –