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