Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
16 | class GitController extends \hidev\base\Controller |
||
17 | { |
||
18 | protected $_before = ['.gitignore']; |
||
19 | |||
20 | /** |
||
21 | * @var string current tag |
||
22 | */ |
||
23 | protected $tag; |
||
24 | |||
25 | public function actionRelease($release = null) |
||
26 | { |
||
27 | $release = $this->take('version')->getRelease($release); |
||
28 | $message = "version bump to $release"; |
||
29 | $this->getComponent()->commit($message); |
||
30 | $this->getComponent()->tag($release); |
||
31 | |||
32 | return $this->getComponent()->push(); |
||
33 | } |
||
34 | |||
35 | public function actionCommit($message) |
||
38 | } |
||
39 | |||
40 | public function actionTag($tag) |
||
41 | { |
||
42 | return $this->getComponent()->tag($tag); |
||
43 | } |
||
44 | |||
45 | public function actionPush() |
||
46 | { |
||
47 | return $this->getComponent()->push(); |
||
48 | } |
||
49 | |||
50 | public function getComponent() |
||
53 | } |
||
54 | } |
||
55 |