line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cogit::Config; |
2
|
|
|
|
|
|
|
$Cogit::Config::VERSION = '0.001001'; |
3
|
4
|
|
|
4
|
|
15
|
use Moo; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
31
|
|
4
|
4
|
|
|
4
|
|
7429
|
use MooX::Types::MooseLike::Base qw( InstanceOf ); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
559
|
|
5
|
4
|
|
|
4
|
|
18
|
use namespace::clean; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
32
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
extends 'Config::GitLike'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has '+confname' => ( default => "gitconfig" ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has git => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
isa => InstanceOf['Cogit'], |
14
|
|
|
|
|
|
|
required => 1, |
15
|
|
|
|
|
|
|
weak_ref => 1, |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub dir_file { |
19
|
24
|
|
|
24
|
1
|
131772
|
my $self = shift; |
20
|
24
|
|
|
|
|
233
|
return $self->git->gitdir->file("config"); |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Cogit::Config |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.001001 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Arthur Axel "fREW" Schmidt <cogit@afoolishmanifesto.com> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Arthur Axel "fREW" Schmidt. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
48
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |