line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
812
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
20
|
|
2
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Footprintless::Plugin::Database::Command::db; |
5
|
|
|
|
|
|
|
$Footprintless::Plugin::Database::Command::db::VERSION = '1.00'; |
6
|
|
|
|
|
|
|
# ABSTRACT: Provides support for databases |
7
|
|
|
|
|
|
|
# PODNAME: Footprintless::Plugin::Database::Command::db |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
3
|
use parent qw(Footprintless::App::ActionCommand); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
3
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub _actions { |
12
|
|
|
|
|
|
|
return ( |
13
|
0
|
|
|
0
|
|
|
'backup' => 'Footprintless::Plugin::Database::Command::db::backup', |
14
|
|
|
|
|
|
|
'client' => 'Footprintless::Plugin::Database::Command::db::client', |
15
|
|
|
|
|
|
|
'copy-to' => 'Footprintless::Plugin::Database::Command::db::copy_to', |
16
|
|
|
|
|
|
|
'restore' => 'Footprintless::Plugin::Database::Command::db::restore', |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _default_action { |
21
|
0
|
|
|
0
|
|
|
return 'client'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub usage_desc { |
25
|
0
|
|
|
0
|
1
|
|
return 'fpl db DB_COORD ACTION %o'; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |