line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::CLI::DbDeploy; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::CLI::DbDeploy::VERSION = '5.0.6'; |
4
|
1
|
|
|
1
|
|
938
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
32
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use Tapper::Model 'model'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
8
|
1
|
|
|
1
|
|
8
|
use parent 'App::Cmd'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub opt_spec |
11
|
|
|
|
|
|
|
{ |
12
|
0
|
|
|
0
|
0
|
|
my ( $class, $app ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
return ( |
15
|
0
|
|
|
|
|
|
[ 'help' => "This usage screen" ], |
16
|
|
|
|
|
|
|
$class->options($app), |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub global_opt_spec { |
21
|
|
|
|
|
|
|
return ( |
22
|
0
|
|
|
0
|
1
|
|
[ 'l' => "Prepend ./lib/ to module search path \@INC" ], |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub execute_command |
28
|
|
|
|
|
|
|
{ |
29
|
0
|
|
|
0
|
1
|
|
my ($cmd, $opt, $args) = @_; |
30
|
|
|
|
|
|
|
|
31
|
0
|
0
|
|
|
|
|
if ($cmd->global_options->{l}) { |
32
|
0
|
|
|
|
|
|
eval "use lib './lib/'"; ## no critic |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
App::Cmd::execute_command(@_); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# sub validate_args |
39
|
|
|
|
|
|
|
# { |
40
|
|
|
|
|
|
|
# my ( $self, $opt, $args ) = @_; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
# die $self->_usage_text if $opt->{help}; |
43
|
|
|
|
|
|
|
# use Data::Dumper; |
44
|
|
|
|
|
|
|
# $self->validate( $opt, $args ); |
45
|
|
|
|
|
|
|
# } |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=pod |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=encoding UTF-8 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Tapper::CLI::DbDeploy |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Advanced Micro Devices, Inc.. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software, licensed under: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |