default services conflit ?
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Robo\Task\Gulp;
|
||||
|
||||
use Robo\Contract\CommandInterface;
|
||||
|
||||
/**
|
||||
* Gulp Run
|
||||
*
|
||||
* ``` php
|
||||
* <?php
|
||||
* // simple execution
|
||||
* $this->taskGulpRun()->run();
|
||||
*
|
||||
* // run task 'clean' with --silent option
|
||||
* $this->taskGulpRun('clean')
|
||||
* ->silent()
|
||||
* ->run();
|
||||
* ?>
|
||||
* ```
|
||||
*/
|
||||
class Run extends Base implements CommandInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
if (strlen($this->arguments)) {
|
||||
$this->printTaskInfo('Running Gulp task: {gulp_task} with arguments: {arguments}', ['gulp_task' => $this->task, 'arguments' => $this->arguments]);
|
||||
} else {
|
||||
$this->printTaskInfo('Running Gulp task: {gulp_task} without arguments', ['gulp_task' => $this->task]);
|
||||
}
|
||||
return $this->executeCommand($this->getCommand());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user