package App::DuckPAN::Cmd::Install;
BEGIN {
$App::DuckPAN::Cmd::Install::AUTHORITY = 'cpan:DDG';
}
{
$App::DuckPAN::Cmd::Install::VERSION = '0.116';
}
# ABSTRACT: Install the distribution in current directory
use Moo;
with qw( App::DuckPAN::Cmd );
use MooX::Options;
sub run {
my ( $self, @args ) = @_;
if (-f 'dist.ini') {
$self->app->print_text(
"Found a dist.ini, suggesting a Dist::Zilla distribution",
);
$self->app->perl->cpanminus_install_error
if (system("dzil install --install-command 'cpanm .'"));
$self->app->print_text(
"Everything fine!",
);
}
}
1;
__END__
=pod
=head1 NAME
App::DuckPAN::Cmd::Install - Install the distribution in current directory
=head1 VERSION
version 0.116
=head1 AUTHOR
Torsten Raudssus <torsten@raudss.us> L<https://raudss.us/>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by DuckDuckGo, Inc. L<http://duckduckgo.com/>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut