| 1 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Footprintless::App::Command::overlay::clean; | ||||||||||
| 5 | 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 | ▶ | use parent qw(Footprintless::App::Action); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 5 | ▶ | use Footprintless::App -ignore; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 5 | ▶ | use Log::Any; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 5 | my $logger = Log::Any->get_logger(); | |||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | sub execute { | ||||||||
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 17 | 0 | 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 | 0 | ▶ | sub usage_desc { | ||||||||
|
Subroutine
usage_desc: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 26 | 0 | return "fpl overlay OVERLAY_COORD clean"; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub validate_args { | ||||||||
|
Subroutine
validate_args: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 30 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 31 | |||||||||||
| 32 | 0 | eval { $self->{overlay} = $self->{footprintless}->overlay( $self->{coordinate} ); }; | |||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | $self->usage_error("invalid coordinate [$self->{coordinate}]: $@") if ($@); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 5 | 1; | |||||||||
| 38 | |||||||||||
| 39 | __END__ | ||||||||||