| 1 | # ABSTRACT: permanently delete a stack | ||||||||||
| 2 | |||||||||||
| 3 | package App::Pinto::Command::kill; | ||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | #----------------------------------------------------------------------------- | ||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use base 'App::Pinto::Command'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | #------------------------------------------------------------------------------ | ||||||||||
| 13 | |||||||||||
| 14 | 1 | our $VERSION = '0.14'; # VERSION | |||||||||
| 15 | |||||||||||
| 16 | #------------------------------------------------------------------------------ | ||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub command_names { return qw(kill) } | ||||||||
|
Subroutine
command_names: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | |||||||||||
| 20 | #------------------------------------------------------------------------------ | ||||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | sub opt_spec { | ||||||||
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 23 | 0 | my ( $self, $app ) = @_; | |||||||||
| 24 | |||||||||||
| 25 | 0 | return ( [ 'force' => 'Kill even if stack is locked' ], ); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | #------------------------------------------------------------------------------ | ||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub validate_args { | ||||||||
|
Subroutine
validate_args: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 31 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 32 | |||||||||||
| 33 | $self->usage_error('Must specify exactly one stack') | ||||||||||
| 34 | 0 | ▶ | if @{$args} != 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | |||||||||||
| 36 | 0 | return 1; | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | #------------------------------------------------------------------------------ | ||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub execute { | ||||||||
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 42 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 43 | |||||||||||
| 44 | 0 | my $result = $self->pinto->run( $self->action_name, %{$opts}, stack => $args->[0] ); | |||||||||
| 45 | |||||||||||
| 46 | 0 | return $result->exit_status; | |||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | #------------------------------------------------------------------------------ | ||||||||||
| 50 | 1 | 1; | |||||||||
| 51 | |||||||||||
| 52 | __END__ | ||||||||||