blib/lib/Minilla/CLI/Run.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 20 | 75.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 6 | 83.3 |
pod | 0 | 1 | 0.0 |
total | 20 | 27 | 74.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Minilla::CLI::Run; | ||||||
2 | 1 | 1 | 962 | use strict; | |||
1 | 4 | ||||||
1 | 27 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 23 | ||||||
4 | 1 | 1 | 5 | use utf8; | |||
1 | 2 | ||||||
1 | 6 | ||||||
5 | |||||||
6 | 1 | 1 | 21 | use Minilla::WorkDir; | |||
1 | 2 | ||||||
1 | 17 | ||||||
7 | 1 | 1 | 5 | use Minilla::Project; | |||
1 | 2 | ||||||
1 | 105 | ||||||
8 | |||||||
9 | sub run { | ||||||
10 | 0 | 0 | 0 | my ($self, @args) = @_; | |||
11 | |||||||
12 | 0 | my $project = Minilla::Project->new(); | |||||
13 | 0 | my $work_dir = $project->work_dir; | |||||
14 | 0 | my $code = $work_dir->run(@args); | |||||
15 | 0 | exit $code; | |||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | __END__ |