| @@ 65-85 (lines=21) @@ | ||
| 62 | * |
|
| 63 | * @return array |
|
| 64 | */ |
|
| 65 | protected function configureVariables() |
|
| 66 | { |
|
| 67 | return array( |
|
| 68 | 'exclude' => array( |
|
| 69 | 'type' => 'array', |
|
| 70 | 'default' => array(), |
|
| 71 | 'label' => 'Array with files/dirs to explicitely exclude' |
|
| 72 | ), |
|
| 73 | 'include' => array( |
|
| 74 | 'type' => 'array', |
|
| 75 | 'default' => array(), |
|
| 76 | 'label' => 'Array with files/dirs to explicitely include' |
|
| 77 | ), |
|
| 78 | 'options' => array( |
|
| 79 | 'type' => 'array', |
|
| 80 | 'default' => array(), |
|
| 81 | 'label' => 'Array with options for rsync: Elements with numeric keys or bool true values will be --switches.' |
|
| 82 | ), |
|
| 83 | '--' |
|
| 84 | ) + parent::configureVariables(); |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Run the task |
|
| @@ 106-127 (lines=22) @@ | ||
| 103 | * |
|
| 104 | * @return array |
|
| 105 | */ |
|
| 106 | protected function configureVariables() |
|
| 107 | { |
|
| 108 | return array( |
|
| 109 | 'tasks' => array( |
|
| 110 | 'type' => 'array', |
|
| 111 | 'label' => 'Array of tasks to add to the subTask' |
|
| 112 | ), |
|
| 113 | 'task' => array( |
|
| 114 | 'type' => 'mixed', |
|
| 115 | 'label' => 'Task to run as a sub task' |
|
| 116 | ), |
|
| 117 | 'workflow' => array( |
|
| 118 | 'type' => 'array', |
|
| 119 | 'label' => 'Workflow to run as a subtask', |
|
| 120 | ), |
|
| 121 | 'script' => array( |
|
| 122 | 'type' => 'string', |
|
| 123 | 'label' => 'Script to include which configures the tasks' |
|
| 124 | ), |
|
| 125 | '--' |
|
| 126 | ) + parent::configureVariables(); |
|
| 127 | } |
|
| 128 | ||
| 129 | /** |
|
| 130 | * Called from parent task as soon as task is ready to run - which doesn't |
|