TYPO3\Surf\Task\LocalShellTask

class LocalShellTask

A shell task for local packaging.

It takes the following options:

  • command - The command to execute.
  • rollbackCommand (optional) - The command to execute as a rollback.
  • ignoreErrors (optional) - If true, ignore errors during execution. Default is true.
  • logOutput (optional) - If true, output the log. Default is false.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskLocalShellTask’, [
‘command’ => mkdir -p /var/wwww/outerspace’, ‘rollbackCommand’ => ‘rm -rf /Var/www/outerspace’

]

);

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:
setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array

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