Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Npm / Update.php
1 <?php
2 namespace Robo\Task\Npm;
3
4 /**
5  * Npm Update
6  *
7  * ```php
8  * <?php
9  * // simple execution
10  * $this->taskNpmUpdate()->run();
11  *
12  * // prefer dist with custom path
13  * $this->taskNpmUpdate('path/to/my/npm')
14  *      ->noDev()
15  *      ->run();
16  * ?>
17  * ```
18  */
19 class Update extends Base
20 {
21     /**
22      * @var string
23      */
24     protected $action = 'update';
25
26     /**
27      * {@inheritdoc}
28      */
29     public function run()
30     {
31         $this->printTaskInfo('Update Npm packages: {arguments}', ['arguments' => $this->arguments]);
32         return $this->executeCommand($this->getCommand());
33     }
34 }