JESP/Cmd/Command/deploy.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 100% 4 / 4 totaltotal 68.7% 22 / 32 CC 1 SCAR 4.1
CC
1
Cov
70%
options
2.0
abstract
2.0
description
2.0
CRAP 1.5
« JESP/Driver/SQLite.pm ↑ Summary JESP/Colorizer.pm »
1 package App::JESP::Cmd::Command::deploy;
2 1 $App::JESP::Cmd::Command::deploy::VERSION = '0.016';
3 1 ▶use base qw/App::JESP::Cmd::CommandJESP/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Log::Any qw/$log/;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 0 ▶sub options{
Subroutine options: not called CC=1 SCAR=6.9
Pod documented
28 0 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 ▶sub abstract { "Deploy patches from <home>/plan.json in the DB" }
Subroutine abstract: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub description { "Deploys patches from <home>/plan.json in the DB and records their applications in the Meta tables" }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
40 0 my ($self, $opts, $args) = @_;
41 0 $self->jesp->deploy( $opts );
42 }
43  
44 1 1;
« JESP/Driver/SQLite.pm ↑ Summary JESP/Colorizer.pm »