Local/Plugin/ModList.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.3% 26 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Local/Plugin.pm ↑ Summary Local/Distribution/Role/Metadata.pm »
1 package CPAN::Local::Plugin::ModList;
2 {
3 2 $CPAN::Local::Plugin::ModList::VERSION = '0.010';
4 }
5  
6 # ABSTRACT: Update 03modlist.data
7  
8 2 ▶use CPAN::Index::API::File::ModList;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Path::Class qw(file dir);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 extends 'CPAN::Local::Plugin';
13 2 with qw(CPAN::Local::Role::Initialise);
14  
15 sub initialise
16 1 ▶{
Subroutine initialise: called CC=1 SCAR=0.0
Pod undocumented
17 1 my $self = shift;
18  
19 1 dir($self->root)->mkpath;
20  
21 1 my $modlist = CPAN::Index::API::File::ModList->new(
22 repo_path => $self->root,
23 );
24  
25 1 $modlist->write_to_tarball;
26 }
27  
28 2 __PACKAGE__->meta->make_immutable;
29  
30 __END__
« Local/Plugin.pm ↑ Summary Local/Distribution/Role/Metadata.pm »