Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Remote / loadTasks.php
diff --git a/vendor/consolidation/robo/src/Task/Remote/loadTasks.php b/vendor/consolidation/robo/src/Task/Remote/loadTasks.php
new file mode 100644 (file)
index 0000000..092d2a5
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+namespace Robo\Task\Remote;
+
+trait loadTasks
+{
+    /**
+     * @return \Robo\Task\Remote\Rsync
+     */
+    protected function taskRsync()
+    {
+        return $this->task(Rsync::class);
+    }
+
+    /**
+     * @param null|string $hostname
+     * @param null|string $user
+     *
+     * @return \Robo\Task\Remote\Ssh
+     */
+    protected function taskSshExec($hostname = null, $user = null)
+    {
+        return $this->task(Ssh::class, $hostname, $user);
+    }
+}