line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
2216
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
122
|
|
2
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
77
|
|
|
5
|
|
|
|
|
215
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Footprintless::App::Command::overlay::clean; |
5
|
|
|
|
|
|
|
$Footprintless::App::Command::overlay::clean::VERSION = '1.26'; |
6
|
|
|
|
|
|
|
# ABSTRACT: removes all files managed by the overlay |
7
|
|
|
|
|
|
|
# PODNAME: Footprintless::App::Command::overlay::clean |
8
|
|
|
|
|
|
|
|
9
|
5
|
|
|
5
|
|
25
|
use parent qw(Footprintless::App::Action); |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
23
|
|
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
293
|
use Footprintless::App -ignore; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
89
|
|
12
|
5
|
|
|
5
|
|
917
|
use Log::Any; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
23
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $logger = Log::Any->get_logger(); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub execute { |
17
|
0
|
|
|
0
|
1
|
|
my ( $self, $opts, $args ) = @_; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
$logger->info('Performing clean...'); |
20
|
0
|
|
|
|
|
|
$self->{overlay}->clean(); |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
$logger->info('Done...'); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub usage_desc { |
26
|
0
|
|
|
0
|
1
|
|
return "fpl overlay OVERLAY_COORD clean"; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub validate_args { |
30
|
0
|
|
|
0
|
1
|
|
my ( $self, $opts, $args ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
eval { $self->{overlay} = $self->{footprintless}->overlay( $self->{coordinate} ); }; |
|
0
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
0
|
0
|
|
|
|
|
$self->usage_error("invalid coordinate [$self->{coordinate}]: $@") if ($@); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |