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