Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Vcs / loadTasks.php
diff --git a/vendor/consolidation/robo/src/Task/Vcs/loadTasks.php b/vendor/consolidation/robo/src/Task/Vcs/loadTasks.php
new file mode 100644 (file)
index 0000000..6dd0622
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+namespace Robo\Task\Vcs;
+
+trait loadTasks
+{
+    /**
+     * @param string $username
+     * @param string $password
+     * @param string $pathToSvn
+     *
+     * @return \Robo\Task\Vcs\SvnStack
+     */
+    protected function taskSvnStack($username = '', $password = '', $pathToSvn = 'svn')
+    {
+        return $this->task(SvnStack::class, $username, $password, $pathToSvn);
+    }
+
+    /**
+     * @param string $pathToGit
+     *
+     * @return \Robo\Task\Vcs\GitStack
+     */
+    protected function taskGitStack($pathToGit = 'git')
+    {
+        return $this->task(GitStack::class, $pathToGit);
+    }
+
+    /**
+     * @param string $pathToHg
+     *
+     * @return \Robo\Task\Vcs\HgStack
+     */
+    protected function taskHgStack($pathToHg = 'hg')
+    {
+        return $this->task(HgStack::class, $pathToHg);
+    }
+}