| 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; | |