| 1 | package App::DuckPAN::Cmd::Roadrunner; | ||||||||||||||||||
| 2 | 1 | our $AUTHORITY = 'cpan:DDG'; | |||||||||||||||||
| 3 | # ABSTRACT: Install requirements as fast as possible | ||||||||||||||||||
| 4 | 1 | $App::DuckPAN::Cmd::Roadrunner::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 | 1 | ▶ | use Time::HiRes qw( usleep ); | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 10 | |||||||||||||||||||
| 11 | 0 | ▶ | sub run { | ||||||||||||||||
|
Subroutine
run: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||||||||||
| 12 | 0 | my ( $self, @args ) = @_; | |||||||||||||||||
| 13 | |||||||||||||||||||
| 14 | 0 | ▶ | if (-f 'dist.ini') { | ||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||
| 15 | 0 | $self->app->emit_info("Found a dist.ini, suggesting a Dist::Zilla distribution"); | |||||||||||||||||
| 16 | 0 | ▶ | $self->app->perl->cpanminus_install_error | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 17 | if (system("dzil authordeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied")); | ||||||||||||||||||
| 18 | 0 | ▶ | $self->app->perl->cpanminus_install_error | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 19 | if (system("dzil listdeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied")); | ||||||||||||||||||
| 20 | 0 | $self->app->emit_info("Everything fine!"); | |||||||||||||||||
| 21 | } | ||||||||||||||||||
| 22 | elsif (-f 'Makefile.PL') { | ||||||||||||||||||
| 23 | 0 | $self->app->emit_info("Found a Makefile.PL"); | |||||||||||||||||
| 24 | 0 | ▶ | $self->app->perl->cpanminus_install_error | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 25 | if (system("cpanm --quiet --notest --skip-satisfied --installdeps .")); | ||||||||||||||||||
| 26 | } | ||||||||||||||||||
| 27 | elsif (-f 'Build.PL') { | ||||||||||||||||||
| 28 | 0 | $self->app->emit_info("Found a Build.PL"); | |||||||||||||||||
| 29 | 0 | ▶ | $self->app->perl->cpanminus_install_error | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 30 | if (system("cpanm --quiet --notest --skip-satisfied --installdeps .")); | ||||||||||||||||||
| 31 | } | ||||||||||||||||||
| 32 | |||||||||||||||||||
| 33 | 0 | $self->app->emit_info("\a"); usleep 225000; $self->app->emit_info("\a"); | |||||||||||||||||
| 34 | |||||||||||||||||||
| 35 | } | ||||||||||||||||||
| 36 | |||||||||||||||||||
| 37 | 1 | 1; | |||||||||||||||||
| 38 | |||||||||||||||||||
| 39 | __END__ | ||||||||||||||||||