Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Bower / Update.php
diff --git a/vendor/consolidation/robo/src/Task/Bower/Update.php b/vendor/consolidation/robo/src/Task/Bower/Update.php
new file mode 100644 (file)
index 0000000..f0dfa94
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+namespace Robo\Task\Bower;
+
+/**
+ * Bower Update
+ *
+ * ``` php
+ * <?php
+ * // simple execution
+ * $this->taskBowerUpdate->run();
+ *
+ * // prefer dist with custom path
+ * $this->taskBowerUpdate('path/to/my/bower')
+ *      ->noDev()
+ *      ->run();
+ * ?>
+ * ```
+ */
+class Update extends Base
+{
+    /**
+     * {@inheritdoc}
+     */
+    protected $action = 'update';
+
+    /**
+     * {@inheritdoc}
+     */
+    public function run()
+    {
+        $this->printTaskInfo('Update Bower packages: {arguments}', ['arguments' => $this->arguments]);
+        return $this->executeCommand($this->getCommand());
+    }
+}