TYPO3\Surf\Task\ShellTask

class ShellTask

A task to execute shell commands on the remote host.

It takes the following options:

  • command - The command that should be executed on the remote host.
  • rollbackCommand (optional) - The command that reverses the changes.
  • ignoreErrors (optional) - If true, ignore errors during execution. Default is true.
  • logOutput (optional) - If true, output the log. Default is false.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskShellTask’, [
‘command’ => ‘mkdir -p /var/www/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:
resolveOptions(OptionsResolver $resolver)
Parameters:
  • $resolver (OptionsResolver) –
replacePaths(Application $application, Deployment $deployment, $command)
Parameters:
Returns:

mixed

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

array