TYPO3\Surf\Task\GitCheckoutTask

class GitCheckoutTask

A Git checkout task.

It takes the following options:

  • repositoryUrl - The repository to check out.
  • hardClean (optional) - If true, the task performs a hard clean. Default is true.
Example:
$application->setOption(‘repositoryUrl’, ‘git@github.com:TYPO3/Surf.git’);
property shell

protected ShellCommandService

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

Execute this task

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

Rollback this task by removing the revision file

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

Simulate this task

Parameters:
resolveSha1(Node $node, Deployment $deployment, $options)
Parameters:
Returns:

array

executeOrSimulateGitCloneOrUpdate($checkoutPath, Node $node, Deployment $deployment, $options)
Parameters:
  • $checkoutPath (string) –
  • $node (Node) –
  • $deployment (Deployment) –
  • $options (array) –
Returns:

array

executeOrSimulatePostGitCheckoutCommands($gitPath, $sha1, Node $node, Deployment $deployment, $options)
Parameters:
  • $gitPath
  • $sha1
  • $node (Node) –
  • $deployment (Deployment) –
  • $options (array) –
setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array

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