Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / robo
1 #!/usr/bin/env php
2 <?php
3 /**
4  * if we're running from phar load the phar autoload,
5  * else let the script 'robo' search for the autoloader.
6  * If we cannot find a vendor/autoload.php file, then
7  * we will go ahead and try the phar.
8  */
9 $autoloaderPath = 'phar://robo.phar/vendor/autoload.php';
10 if (!strpos(basename(__FILE__), 'phar')) {
11     if (file_exists(__DIR__.'/vendor/autoload.php')) {
12         $autoloaderPath = __DIR__.'/vendor/autoload.php';
13     } elseif (file_exists(__DIR__.'/../../autoload.php')) {
14         $autoloaderPath = __DIR__ . '/../../autoload.php';
15     }
16 }
17 $classLoader = require $autoloaderPath;
18 $runner = new \Robo\Runner();
19 $runner
20   ->setRelativePluginNamespace('Robo\Plugin')
21   ->setSelfUpdateRepository('consolidation/robo')
22   ->setClassLoader($classLoader);
23 $statusCode = $runner->execute($_SERVER['argv']);
24 exit($statusCode);