@@ -9,6 +9,9 @@ |
||
| 9 | 9 | private $handle; |
| 10 | 10 | private $columns; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param string $filename |
|
| 14 | + */ |
|
| 12 | 15 | public function __construct($filename) { |
| 13 | 16 | $this->filename = $filename; |
| 14 | 17 | } |
@@ -18,9 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @param string $command The command |
| 21 | - * @param boolean $throwException If true, an Exception will be thrown on a nonzero error code |
|
| 22 | - * @param boolean $returnOutput If true, output will be captured |
|
| 23 | - * @param boolean $inputContent Content for STDIN. Otherwise the parent script's STDIN is used |
|
| 24 | 21 | * @return A map containing 'return', 'output', and 'error' |
| 25 | 22 | */ |
| 26 | 23 | public function execLocal($command, $options = array()) { |
@@ -23,6 +23,10 @@ discard block |
||
| 23 | 23 | public function isLocal() { |
| 24 | 24 | return $this->server == null; |
| 25 | 25 | } |
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @return string|null |
|
| 29 | + */ |
|
| 26 | 30 | public function getPath() { |
| 27 | 31 | return $this->path; |
| 28 | 32 | } |
@@ -59,7 +63,6 @@ discard block |
||
| 59 | 63 | |
| 60 | 64 | /** |
| 61 | 65 | * Upload a file to the given destination on the server |
| 62 | - * @param string $file The file to upload |
|
| 63 | 66 | * @param string $dest The remote filename/dir to upload to |
| 64 | 67 | */ |
| 65 | 68 | public function upload($source, $dest) { |
@@ -348,6 +348,11 @@ discard block |
||
| 348 | 348 | return true; |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | + /** |
|
| 352 | + * @param Webroot $webroot |
|
| 353 | + * @param SSPakFile $sspak |
|
| 354 | + * @param string $filename |
|
| 355 | + */ |
|
| 351 | 356 | public function getassets($webroot, $assetsPath, $sspak, $filename) { |
| 352 | 357 | $assetsParentArg = escapeshellarg(dirname($assetsPath)); |
| 353 | 358 | $assetsBaseArg = escapeshellarg(basename($assetsPath)); |
@@ -356,6 +361,11 @@ discard block |
||
| 356 | 361 | $sspak->writeFileFromProcess($filename, $process); |
| 357 | 362 | } |
| 358 | 363 | |
| 364 | + /** |
|
| 365 | + * @param Webroot $webroot |
|
| 366 | + * @param SSPakFile $sspak |
|
| 367 | + * @param string $gitRemoteFile |
|
| 368 | + */ |
|
| 359 | 369 | public function getgitremote($webroot, $sspak, $gitRemoteFile) { |
| 360 | 370 | // Only do anything if we're copying from a git checkout |
| 361 | 371 | $gitRepo = $webroot->getPath() .'/.git'; |
@@ -66,9 +66,8 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * Put the database from the given sspak file into this webroot. |
| 69 | - * @param array $details The previously sniffed details of this webroot |
|
| 70 | 69 | * @param bool $dropdb Drop the DB prior to install |
| 71 | - * @param string $sspakFile Filename |
|
| 70 | + * @param SSPakFile $sspak Filename |
|
| 72 | 71 | */ |
| 73 | 72 | public function putdb($sspak, $dropdb) { |
| 74 | 73 | $details = $this->details(); |
@@ -135,6 +134,9 @@ discard block |
||
| 135 | 134 | fclose($stream); |
| 136 | 135 | } |
| 137 | 136 | |
| 137 | + /** |
|
| 138 | + * @param SSPakFile $sspak |
|
| 139 | + */ |
|
| 138 | 140 | public function putassets($sspak) { |
| 139 | 141 | $details = $this->details(); |
| 140 | 142 | $assetsPath = $details['assets_path']; |