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