| 1 | # ABSTRACT: install stuff from the repository | ||||||||||
| 2 | |||||||||||
| 3 | package App::Pinto::Command::install; | ||||||||||
| 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 opt_spec { | ||||||||
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 0 | my ( $self, $app ) = @_; | |||||||||
| 20 | |||||||||||
| 21 | return ( | ||||||||||
| 22 | 0 | [ 'cascade' => 'Always pick latest upstream package' ], | |||||||||
| 23 | [ 'cpanm-exe|cpanm=s' => 'Path to the cpanm executable' ], | ||||||||||
| 24 | [ 'cpanm-options|o:s%' => 'name=value pairs of cpanm options' ], | ||||||||||
| 25 | [ 'diff-style=s' => 'Set style of diff reports' ], | ||||||||||
| 26 | [ 'local-lib|l=s' => 'install into a local lib directory' ], | ||||||||||
| 27 | [ 'local-lib-contained|L=s' => 'install into a contained local lib directory' ], | ||||||||||
| 28 | [ 'message|m=s' => 'Message to describe the change' ], | ||||||||||
| 29 | [ 'do-pull' => 'pull missing prereqs onto the stack first' ], | ||||||||||
| 30 | [ 'stack|s=s' => 'Install modules from this stack' ], | ||||||||||
| 31 | [ 'use-default-message|M' => 'Use the generated message' ], | ||||||||||
| 32 | |||||||||||
| 33 | ); | ||||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | #------------------------------------------------------------------------------ | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub validate_args { | ||||||||
|
Subroutine
validate_args: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 39 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 40 | |||||||||||
| 41 | 0 | my $local_lib = delete $opts->{local_lib}; | |||||||||
| 42 | 0 | ▶ | $opts->{cpanm_options}->{'local-lib'} = $local_lib | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | if $local_lib; | ||||||||||
| 44 | |||||||||||
| 45 | 0 | my $local_lib_contained = delete $opts->{local_lib_contained}; | |||||||||
| 46 | 0 | ▶ | $opts->{cpanm_options}->{'local-lib-contained'} = $local_lib_contained | ||||||||
|
Branch: 1 branch
| |||||||||||
| 47 | if $local_lib_contained; | ||||||||||
| 48 | |||||||||||
| 49 | 0 | return 1; | |||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | #------------------------------------------------------------------------------ | ||||||||||
| 53 | |||||||||||
| 54 | 0 | ▶ | sub args_attribute { return 'targets' } | ||||||||
|
Subroutine
args_attribute: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 55 | |||||||||||
| 56 | #------------------------------------------------------------------------------ | ||||||||||
| 57 | |||||||||||
| 58 | 0 | ▶ | sub args_from_stdin { return 1 } | ||||||||
|
Subroutine
args_from_stdin: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 59 | |||||||||||
| 60 | #------------------------------------------------------------------------------ | ||||||||||
| 61 | 1 | 1; | |||||||||
| 62 | |||||||||||
| 63 | __END__ | ||||||||||