line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
2852
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
119
|
|
2
|
5
|
|
|
5
|
|
20
|
use warnings; |
|
5
|
|
|
|
|
87
|
|
|
5
|
|
|
|
|
207
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Footprintless::App::Command::overlay::clean; |
5
|
|
|
|
|
|
|
$Footprintless::App::Command::overlay::clean::VERSION = '1.29'; |
6
|
|
|
|
|
|
|
# ABSTRACT: removes all files managed by the overlay |
7
|
|
|
|
|
|
|
# PODNAME: Footprintless::App::Command::overlay::clean |
8
|
|
|
|
|
|
|
|
9
|
5
|
|
|
5
|
|
23
|
use parent qw(Footprintless::App::Action); |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
22
|
|
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
289
|
use Footprintless::App -ignore; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
95
|
|
12
|
5
|
|
|
5
|
|
977
|
use Log::Any; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
21
|
|
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__ |