1 | <?php |
||
30 | class SvnStack extends CommandStack implements CommandInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | protected $stopOnFail = false; |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | protected $result; |
||
41 | |||
42 | /** |
||
43 | * @param string $username |
||
44 | * @param string $password |
||
45 | * @param string $pathToSvn |
||
46 | */ |
||
47 | public function __construct($username = '', $password = '', $pathToSvn = 'svn') |
||
58 | |||
59 | /** |
||
60 | * Updates `svn update` command |
||
61 | * |
||
62 | * @param string $path |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function update($path = '') |
||
70 | |||
71 | /** |
||
72 | * Executes `svn add` command with files to add pattern |
||
73 | * |
||
74 | * @param string $pattern |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function add($pattern = '') |
||
82 | |||
83 | /** |
||
84 | * Executes `svn commit` command with a message |
||
85 | * |
||
86 | * @param string $message |
||
87 | * @param string $options |
||
88 | * |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function commit($message, $options = "") |
||
95 | |||
96 | /** |
||
97 | * Executes `svn checkout` command |
||
98 | * |
||
99 | * @param string $branch |
||
100 | * |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function checkout($branch) |
||
107 | } |
||
108 |