blib/lib/App/DuckPAN/Cmd/Install.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 52.1% 12 / 23 CC 3 SCAR 20.3
CC
3
Cov
53%
run
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« blib/lib/App/DuckPAN/Cmd/Env/Cmd/List.pm ↑ Summary blib/lib/App/DuckPAN/TemplateDefinitions.pm »
1 package App::DuckPAN::Cmd::Install;
2 1 our $AUTHORITY = 'cpan:DDG';
3 # ABSTRACT: Install the distribution in current directory
4 1 $App::DuckPAN::Cmd::Install::VERSION = '1021';
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 with qw( App::DuckPAN::Cmd );
7  
8 1 ▶use MooX::Options protect_argv => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod undocumented
11 0 my ( $self, @args ) = @_;
12  
13 0 ▶ if (-f 'dist.ini') {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "dist.ini") 0 0 0
14 0 $self->app->emit_info("Found a dist.ini, suggesting a Dist::Zilla distribution");
15  
16 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "dzil install --install-command 'cpanm .' @args" 0 0 0
17 if (system("dzil install --install-command 'cpanm .' @args"));
18 0 $self->app->emit_info("Everything fine!");
19 }
20  
21 }
22  
23 1 1;
24  
25 __END__
« blib/lib/App/DuckPAN/Cmd/Env/Cmd/List.pm ↑ Summary blib/lib/App/DuckPAN/TemplateDefinitions.pm »