line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Release::Config; |
2
|
1
|
|
|
1
|
|
5714
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
556
|
use Mo; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use File::Spec; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has repo => (); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub ready_prefix { |
10
|
|
|
|
|
|
|
my $self = shift; |
11
|
|
|
|
|
|
|
return $self->repo->config('release.ready-prefix') || 'ready'; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub released_prefix { |
15
|
|
|
|
|
|
|
my $self = shift; |
16
|
|
|
|
|
|
|
return $self->repo->config('release.released-prefix') || 'released'; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub site_prefix { |
20
|
|
|
|
|
|
|
my $self = shift; |
21
|
|
|
|
|
|
|
return $self->repo->config('release.site-prefix') || 'site'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub release_prefix { |
25
|
|
|
|
|
|
|
my $self = shift; |
26
|
|
|
|
|
|
|
return $self->repo->config('release.release-prefix') || 'release'; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub hotfix_prefix { |
30
|
|
|
|
|
|
|
my $self = shift; |
31
|
|
|
|
|
|
|
return $self->repo->config('release.hotfix-prefix') || 'hotfix'; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub feature_prefix { |
35
|
|
|
|
|
|
|
my $self = shift; |
36
|
|
|
|
|
|
|
return $self->repo->config('release.release-prefix') || 'feature'; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub develop_branch { |
40
|
|
|
|
|
|
|
my $self = shift; |
41
|
|
|
|
|
|
|
return $self->repo->config('release.develop-branch') || 'develop'; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub rc_branch { |
45
|
|
|
|
|
|
|
my $self = shift; |
46
|
|
|
|
|
|
|
return $self->repo->config('release.rc-branch') || 'rc'; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub branch_doc_ext { |
50
|
|
|
|
|
|
|
my $self = shift; |
51
|
|
|
|
|
|
|
return $self->repo->config('release.branch-doc-ext') || 'mkd'; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub branch_doc_path { |
55
|
|
|
|
|
|
|
my $self = shift; |
56
|
|
|
|
|
|
|
return $self->repo->config('release.branch-doc-dir') || File::Spec->join('doc','branches'); |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |