File Coverage

blib/lib/App/gimpgitbuild/Command/cleanbuild.pm
Criterion Covered Total %
statement 20 28 71.4
branch n/a
condition 0 2 0.0
subroutine 7 11 63.6
pod 4 4 100.0
total 31 45 68.8


line stmt bran cond sub pod time code
1             package App::gimpgitbuild::Command::cleanbuild;
2             $App::gimpgitbuild::Command::cleanbuild::VERSION = '0.32.1';
3 1     1   210953 use strict;
  1         1  
  1         34  
4 1     1   3 use warnings;
  1         2  
  1         81  
5 1     1   384 use autodie;
  1         13422  
  1         4  
6 1     1   6545 use 5.014;
  1         6  
7              
8 1     1   430 use App::gimpgitbuild -command;
  1         2  
  1         6  
9              
10 1     1   6925 use App::gimpgitbuild::API::Worker ();
  1         4  
  1         133  
11              
12             sub description
13             {
14 0     0 1   return "clean the GIMP build checkouts";
15             }
16              
17             sub abstract
18             {
19 0     0 1   return shift->description();
20             }
21              
22             sub opt_spec
23             {
24 0     0 1   return ();
25              
26              
27             }
28              
29             sub execute
30             {
31 0     0 1   my ( $self, $opt, $args ) = @_;
32              
33 0           my $worker = App::gimpgitbuild::API::Worker->new(
34             { _mode => 'clean', _process_executor => 'perl', } );
35              
36 0           $worker->_run_the_mode_on_all_repositories();
37              
38 1     1   583 use Term::ANSIColor qw/ colored /;
  1         11631  
  1         1215  
39 0   0       print colored( [ $ENV{HARNESS_SUMMARY_COLOR_SUCCESS} || 'bold green' ],
40             "\n== Success ==\n\n" );
41 0           return;
42             }
43              
44             1;
45              
46             __END__