line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Sandy::Command::Variation::Restore; |
2
|
|
|
|
|
|
|
# ABSTRACT: variation subcommand class. Restore database. |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
2351
|
use App::Sandy::Base 'class'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'App::Sandy::Command::Variation'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.22'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
override 'opt_spec' => sub { |
11
|
|
|
|
|
|
|
super, |
12
|
|
|
|
|
|
|
'verbose|v' |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub validate_args { |
16
|
0
|
|
|
0
|
1
|
|
my ($self, $args) = @_; |
17
|
0
|
0
|
|
|
|
|
die "Too many arguments: '@$args'\n" if @$args; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub execute { |
21
|
0
|
|
|
0
|
1
|
|
my ($self, $opts, $args) = @_; |
22
|
0
|
0
|
|
|
|
|
$LOG_VERBOSE = exists $opts->{verbose} ? $opts->{verbose} : 0; |
23
|
0
|
|
|
|
|
|
log_msg ":: Restoring structural variation database to vendor state ..."; |
24
|
0
|
|
|
|
|
|
$self->restoredb; |
25
|
0
|
|
|
|
|
|
log_msg ":: Done!"; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
App::Sandy::Command::Variation::Restore - variation subcommand class. Restore database. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.22 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SYNOPSIS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sandy variation restore |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Options: |
47
|
|
|
|
|
|
|
-h, --help brief help message |
48
|
|
|
|
|
|
|
-u, --man full documentation |
49
|
|
|
|
|
|
|
-v, --verbose print log messages |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Restore database. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHORS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=over 4 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item * |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Thiago L. A. Miller <tmiller@mochsl.org.br> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
J. Leonel Buzzo <lbuzzo@mochsl.org.br> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Felipe R. C. dos Santos <fsantos@mochsl.org.br> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Helena B. Conceição <hconceicao@mochsl.org.br> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Gabriela Guardia <gguardia@mochsl.org.br> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Fernanda Orpinelli <forpinelli@mochsl.org.br> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Pedro A. F. Galante <pgalante@mochsl.org.br> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=back |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This software is Copyright (c) 2018 by Teaching and Research Institute from SÃrio-Libanês Hospital. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
This is free software, licensed under: |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=cut |