Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Docker / Remove.php
diff --git a/vendor/consolidation/robo/src/Task/Docker/Remove.php b/vendor/consolidation/robo/src/Task/Docker/Remove.php
new file mode 100644 (file)
index 0000000..0a8c0ac
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+namespace Robo\Task\Docker;
+
+/**
+ * Remove docker container
+ *
+ * ```php
+ * <?php
+ * $this->taskDockerRemove($container)
+ *      ->run();
+ * ?>
+ * ```
+ *
+ */
+class Remove extends Base
+{
+    /**
+     * @param string $container
+     */
+    public function __construct($container)
+    {
+        $this->command = "docker rm $container ";
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getCommand()
+    {
+        return $this->command . ' ' . $this->arguments;
+    }
+}