File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,7 @@ public function readTarget($target)
118
118
$ site = $ exploded [0 ];
119
119
$ environment = $ exploded [1 ];
120
120
}
121
-
122
- $ sites = $ this ->getSites ();
121
+ $ sites = $ this ->getSites ($ site );
123
122
if (!array_key_exists ($ site , $ sites )) {
124
123
return [];
125
124
}
@@ -387,9 +386,11 @@ private function importConfigurationFromFile($configFile)
387
386
}
388
387
389
388
/**
389
+ * @param string $target
390
+ *
390
391
* @return array
391
392
*/
392
- public function getSites ()
393
+ public function getSites ($ target = " * " )
393
394
{
394
395
if ($ this ->sites ) {
395
396
return $ this ->sites ;
@@ -403,7 +404,7 @@ public function getSites()
403
404
404
405
$ finder = new Finder ();
405
406
$ finder ->in ($ sitesDirectories );
406
- $ finder ->name (" * .yml " );
407
+ $ finder ->name ($ target . " .yml " );
407
408
408
409
foreach ($ finder as $ site ) {
409
410
$ siteName = $ site ->getBasename ('.yml ' );
You can’t perform that action at this time.
0 commit comments