Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / robo
diff --git a/vendor/consolidation/robo/robo b/vendor/consolidation/robo/robo
new file mode 100755 (executable)
index 0000000..166b9ca
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env php
+<?php
+/**
+ * if we're running from phar load the phar autoload,
+ * else let the script 'robo' search for the autoloader.
+ * If we cannot find a vendor/autoload.php file, then
+ * we will go ahead and try the phar.
+ */
+$autoloaderPath = 'phar://robo.phar/vendor/autoload.php';
+if (!strpos(basename(__FILE__), 'phar')) {
+    if (file_exists(__DIR__.'/vendor/autoload.php')) {
+        $autoloaderPath = __DIR__.'/vendor/autoload.php';
+    } elseif (file_exists(__DIR__.'/../../autoload.php')) {
+        $autoloaderPath = __DIR__ . '/../../autoload.php';
+    }
+}
+$classLoader = require $autoloaderPath;
+$runner = new \Robo\Runner();
+$runner
+  ->setRelativePluginNamespace('Robo\Plugin')
+  ->setSelfUpdateRepository('consolidation/robo')
+  ->setClassLoader($classLoader);
+$statusCode = $runner->execute($_SERVER['argv']);
+exit($statusCode);
\ No newline at end of file