| 1 | package App::DuckPAN::Cmd::Install; | ||||||||||
| 2 | 1 | our $AUTHORITY = 'cpan:DDG'; | |||||||||
| 3 | # ABSTRACT: Install the distribution in current directory | ||||||||||
| 4 | 1 | $App::DuckPAN::Cmd::Install::VERSION = '1021'; | |||||||||
| 5 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | with qw( App::DuckPAN::Cmd ); | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use MooX::Options protect_argv => 0; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub run { | ||||||||
|
Subroutine
run: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 11 | 0 | my ( $self, @args ) = @_; | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | if (-f 'dist.ini') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | $self->app->emit_info("Found a dist.ini, suggesting a Dist::Zilla distribution"); | |||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | $self->app->perl->cpanminus_install_error | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | if (system("dzil install --install-command 'cpanm .' @args")); | ||||||||||
| 18 | 0 | $self->app->emit_info("Everything fine!"); | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||