-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #25: NEPT-1105: Allow to define commands in runner.yml.dist
- Loading branch information
Showing
24 changed files
with
555 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace EC\OpenEuropa\TaskRunner\Commands; | ||
|
||
use EC\OpenEuropa\TaskRunner\Tasks\CollectionFactory\loadTasks; | ||
|
||
/** | ||
* Class DynamicCommands | ||
* | ||
* @package EC\OpenEuropa\TaskRunner\Commands | ||
*/ | ||
class DynamicCommands extends BaseCommands | ||
{ | ||
use loadTasks; | ||
|
||
/** | ||
* @return \EC\OpenEuropa\TaskRunner\Tasks\CollectionFactory\CollectionFactory | ||
*/ | ||
public function runTasks() | ||
{ | ||
$command = $this->input()->getArgument('command'); | ||
$tasks = $this->getConfig()->get("commands.{$command}"); | ||
|
||
return $this->taskCollectionFactory($tasks); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace EC\OpenEuropa\TaskRunner\Contract; | ||
|
||
/** | ||
* Interface FilesystemAwareTrait | ||
* | ||
* @package EC\OpenEuropa\TaskRunner\Contract | ||
*/ | ||
interface FilesystemAwareInterface | ||
{ | ||
/** | ||
* @return \Symfony\Component\Filesystem\Filesystem | ||
*/ | ||
public function getFilesystem(); | ||
|
||
/** | ||
* @param \Symfony\Component\Filesystem\Filesystem $filesystem | ||
* | ||
* @return $this | ||
*/ | ||
public function setFilesystem($filesystem); | ||
} |
Oops, something went wrong.