TYPO3\Surf\Task\Transfer\RsyncTask

class RsyncTask

A rsync transfer task

Copies the application assets from the application workspace to the node using rsync.

property replacePaths

protected array

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:
rollback(Node $node, Application $application, Deployment $deployment, $options = [])

Rollback this task

Parameters:
getExcludeFlags($rsyncExcludes)

Generates the –exclude flags for a given array of exclude patterns

Example: [‘foo’, ‘/bar’] => –exclude ‘foo’ –exclude ‘/bar’

Parameters:
  • $rsyncExcludes (array) – An array of patterns to be excluded
Returns:

string

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

array

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