| @@ 79-87 (lines=9) @@ | ||
| 76 | * @param string $to |
|
| 77 | * @return void |
|
| 78 | */ |
|
| 79 | protected function moveFile(string $from, string $to) |
|
| 80 | { |
|
| 81 | if (file_exists($from)) { |
|
| 82 | $moveTaks = new MoveTask(); |
|
| 83 | $moveTaks->setRuntime($this->runtime); |
|
| 84 | $moveTaks->setOptions($this->getOptions(['from' => $from, 'to' => $to])); |
|
| 85 | $moveTaks->execute(); |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * copyFile |
|
| @@ 96-104 (lines=9) @@ | ||
| 93 | * @param string $to |
|
| 94 | * @return void |
|
| 95 | */ |
|
| 96 | protected function copyFile(string $from, string $to) |
|
| 97 | { |
|
| 98 | if (file_exists($from)) { |
|
| 99 | $copyTaks = new CopyTask(); |
|
| 100 | $copyTaks->setRuntime($this->runtime); |
|
| 101 | $copyTaks->setOptions($this->getOptions(['from' => $from, 'to' => $to])); |
|
| 102 | $copyTaks->execute(); |
|
| 103 | } |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * setPostDeployTask |
|