« lib/Gitalist/Git/CollectionOfRepositories/Role/Context.pm
↑ Summary
lib/Gitalist/Git/CollectionOfRepositories/FromListOfDirectories.pm »
| 1 | 2 | ▶ | use MooseX::Declare; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | class Gitalist::Git::CollectionOfRepositories::FromDirectory::WhiteList | ||
| 4 | 2 | ▶ | extends Gitalist::Git::CollectionOfRepositories::FromDirectory { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use MooseX::Types::Common::String qw/NonEmptySimpleStr/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use MooseX::Types::Path::Class qw/File Dir/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | has whitelist => ( | |
| 9 | isa => File, | ||
| 10 | is => 'ro', | ||
| 11 | required => 1, | ||
| 12 | coerce => 1, | ||
| 13 | ); | ||
| 14 | |||
| 15 | 0 | ▶ | method debug_string { 'repository directory ' . $self->repo_dir . ' whitelist file ' . $self->whitelist } |
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 16 | |||
| 17 | 2 | ▶ | method _build_repositories { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_build_repositories: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | return [ | ||
| 19 | 1 | map Git::Gitalist::Repository->new($_), | |
| 20 | grep -d $_, | ||
| 21 | map $self->repo_dir->subdir($_), | ||
| 22 | map [split]->[0], $self->whitelist->slurp(chomp => 1) | ||
| 23 | ]; | ||
| 24 | 2 | } | |
| 25 | 2 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | __END__ | ||