Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Gulp / Run.php
diff --git a/vendor/consolidation/robo/src/Task/Gulp/Run.php b/vendor/consolidation/robo/src/Task/Gulp/Run.php
new file mode 100644 (file)
index 0000000..8f2077b
--- /dev/null
@@ -0,0 +1,35 @@
+<?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());
+    }
+}