Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Docker / Pull.php
1 <?php
2 namespace Robo\Task\Docker;
3
4 /**
5  * Pulls an image from DockerHub
6  *
7  * ```php
8  * <?php
9  * $this->taskDockerPull('wordpress')
10  *      ->run();
11  *
12  * ?>
13  * ```
14  *
15  */
16 class Pull extends Base
17 {
18     /**
19      * @param string $image
20      */
21     public function __construct($image)
22     {
23         $this->command = "docker pull $image ";
24     }
25
26     /**
27      * {@inheritdoc}
28      */
29     public function getCommand()
30     {
31         return $this->command . ' ' . $this->arguments;
32     }
33 }