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 | 912 | use strict; | |||
1 | 2 | ||||||
1 | 33 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 22 | ||||||
4 | 1 | 1 | 4 | use utf8; | |||
1 | 2 | ||||||
1 | 5 | ||||||
5 | |||||||
6 | 1 | 1 | 20 | use Minilla::WorkDir; | |||
1 | 1 | ||||||
1 | 20 | ||||||
7 | 1 | 1 | 4 | use Minilla::Project; | |||
1 | 2 | ||||||
1 | 98 | ||||||
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__ |