@@ -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 | function execLocal($command, $options = array()) { |
@@ -22,6 +22,10 @@ discard block |
||
22 | 22 | function isLocal() { |
23 | 23 | return $this->server == null; |
24 | 24 | } |
25 | + |
|
26 | + /** |
|
27 | + * @return string|null |
|
28 | + */ |
|
25 | 29 | function getPath() { |
26 | 30 | return $this->path; |
27 | 31 | } |
@@ -52,7 +56,6 @@ discard block |
||
52 | 56 | |
53 | 57 | /** |
54 | 58 | * Upload a file to the given destination on the server |
55 | - * @param string $file The file to upload |
|
56 | 59 | * @param string $dest The remote filename/dir to upload to |
57 | 60 | */ |
58 | 61 | function upload($source, $dest) { |
@@ -234,6 +234,11 @@ discard block |
||
234 | 234 | return true; |
235 | 235 | } |
236 | 236 | |
237 | + /** |
|
238 | + * @param Webroot $webroot |
|
239 | + * @param SSPakFile $sspak |
|
240 | + * @param string $filename |
|
241 | + */ |
|
237 | 242 | function getassets($webroot, $assetsPath, $sspak, $filename) { |
238 | 243 | $assetsParentArg = escapeshellarg(dirname($assetsPath)); |
239 | 244 | $assetsBaseArg = escapeshellarg(basename($assetsPath)); |
@@ -242,6 +247,11 @@ discard block |
||
242 | 247 | $sspak->writeFileFromProcess($filename, $process); |
243 | 248 | } |
244 | 249 | |
250 | + /** |
|
251 | + * @param Webroot $webroot |
|
252 | + * @param SSPakFile $sspak |
|
253 | + * @param string $gitRemoteFile |
|
254 | + */ |
|
245 | 255 | function getgitremote($webroot, $sspak, $gitRemoteFile) { |
246 | 256 | // Only do anything if we're copying from a git checkout |
247 | 257 | $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 | function putdb($sspak, $dropdb) { |
74 | 73 | $details = $this->details(); |
@@ -131,6 +130,9 @@ discard block |
||
131 | 130 | fclose($stream); |
132 | 131 | } |
133 | 132 | |
133 | + /** |
|
134 | + * @param SSPakFile $sspak |
|
135 | + */ |
|
134 | 136 | function putassets($sspak) { |
135 | 137 | $details = $this->details(); |
136 | 138 | $assetsPath = $details['assets_path']; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | private $handle; |
10 | 10 | private $columns; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $filename |
|
14 | + */ |
|
12 | 15 | function __construct($filename) { |
13 | 16 | $this->filename = $filename; |
14 | 17 | } |