line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::JESP::Cmd::Command::deploy; |
2
|
|
|
|
|
|
|
$App::JESP::Cmd::Command::deploy::VERSION = '0.016'; |
3
|
1
|
|
|
1
|
|
1615
|
use base qw/App::JESP::Cmd::CommandJESP/; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
114
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
4
|
use Log::Any qw/$log/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
App::JESP::Cmd::Command::deploy - Deploy Database patches in the DB |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head2 options |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
See superclass L<App::JESP::Cmd::CommandJESP> |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 abstract |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 description |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head2 execute |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
See L<App::Cmd> |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub options{ |
28
|
0
|
|
|
0
|
1
|
|
my ($class, $app) = @_; |
29
|
|
|
|
|
|
|
return ( |
30
|
0
|
|
|
|
|
|
[ 'force' => 'For application of patches' ], |
31
|
|
|
|
|
|
|
[ 'logonly' => 'Only log patches deployment. Do not execute them' ], |
32
|
|
|
|
|
|
|
[ 'patches=s@' => 'Only apply these patche in the order defined. Example: --patches mypatch1 --patches mypatch2' ] |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
sub abstract { "Deploy patches from <home>/plan.json in the DB" } |
38
|
0
|
|
|
0
|
1
|
|
sub description { "Deploys patches from <home>/plan.json in the DB and records their applications in the Meta tables" } |
39
|
|
|
|
|
|
|
sub execute { |
40
|
0
|
|
|
0
|
1
|
|
my ($self, $opts, $args) = @_; |
41
|
0
|
|
|
|
|
|
$self->jesp->deploy( $opts ); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |