| 1 | package Cogit::Config; | ||
| 2 | 4 | $Cogit::Config::VERSION = '0.001001'; | |
| 3 | 4 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use MooX::Types::MooseLike::Base qw( InstanceOf ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | extends 'Config::GitLike'; | |
| 8 | |||
| 9 | 4 | has '+confname' => ( default => "gitconfig" ); | |
| 10 | |||
| 11 | 4 | has git => ( | |
| 12 | is => 'ro', | ||
| 13 | isa => InstanceOf['Cogit'], | ||
| 14 | required => 1, | ||
| 15 | weak_ref => 1, | ||
| 16 | ); | ||
| 17 | |||
| 18 | 28 | ▶ | sub dir_file { |
|
Subroutine
dir_file: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 28 | my $self = shift; | |
| 20 | 28 | return $self->git->gitdir->file("config"); | |
| 21 | }; | ||
| 22 | |||
| 23 | 4 | 1; | |
| 24 | |||
| 25 | __END__ | ||