Lines Matching refs:ext
120 foreach ($extensions as $ext) {
121 $repo = $this->getSourceRepo($ext);
124 $this->error("could not find a repository for $ext");
125 $errors[] = $ext;
126 } elseif ($this->cloneExtension($ext, $repo)) {
127 $succeeded[] = $ext;
129 $errors[] = $ext;
148 foreach ($extensions as $ext) {
149 $repo = $this->getSourceRepo($ext);
152 $this->info("could not find a repository for $ext");
156 $this->info("installing $ext via download");
157 $installer->installFromId($ext);
158 $this->success("installed $ext via download");
159 $succeeded[] = $ext;
161 $this->error("failed to install $ext via download");
162 $errors[] = $ext;
164 } elseif ($this->cloneExtension($ext, $repo)) {
165 $succeeded[] = $ext;
167 $errors[] = $ext;
222 * @param string $ext
226 private function cloneExtension($ext, $repo) argument
228 if (str_starts_with($ext, 'template:')) {
229 $target = fullpath(tpl_incdir() . '../' . substr($ext, 9));
231 $target = DOKU_PLUGIN . $ext;
234 $this->info("cloning $ext from $repo to $target");
238 $this->success("cloning of $ext succeeded");
241 $this->error("cloning of $ext failed");