Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Docker / Base.php
diff --git a/vendor/consolidation/robo/src/Task/Docker/Base.php b/vendor/consolidation/robo/src/Task/Docker/Base.php
new file mode 100644 (file)
index 0000000..135f39e
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+namespace Robo\Task\Docker;
+
+use Robo\Common\ExecOneCommand;
+use Robo\Contract\CommandInterface;
+use Robo\Contract\PrintedInterface;
+use Robo\Task\BaseTask;
+
+abstract class Base extends BaseTask implements CommandInterface, PrintedInterface
+{
+    use ExecOneCommand;
+
+    /**
+     * @var string
+     */
+    protected $command = '';
+
+    /**
+     * {@inheritdoc}
+     */
+    public function run()
+    {
+        $command = $this->getCommand();
+        return $this->executeCommand($command);
+    }
+
+    abstract public function getCommand();
+}