6dd06228a151d10e882ee4824bbe4cd9457c8f56
[yaffs-website] / vendor / consolidation / robo / src / Task / Vcs / loadTasks.php
1 <?php
2 namespace Robo\Task\Vcs;
3
4 trait loadTasks
5 {
6     /**
7      * @param string $username
8      * @param string $password
9      * @param string $pathToSvn
10      *
11      * @return \Robo\Task\Vcs\SvnStack
12      */
13     protected function taskSvnStack($username = '', $password = '', $pathToSvn = 'svn')
14     {
15         return $this->task(SvnStack::class, $username, $password, $pathToSvn);
16     }
17
18     /**
19      * @param string $pathToGit
20      *
21      * @return \Robo\Task\Vcs\GitStack
22      */
23     protected function taskGitStack($pathToGit = 'git')
24     {
25         return $this->task(GitStack::class, $pathToGit);
26     }
27
28     /**
29      * @param string $pathToHg
30      *
31      * @return \Robo\Task\Vcs\HgStack
32      */
33     protected function taskHgStack($pathToHg = 'hg')
34     {
35         return $this->task(HgStack::class, $pathToHg);
36     }
37 }