File Coverage

blib/lib/App/DuckPAN/Cmd/Check.pm
Criterion Covered Total %
statement 6 11 54.5
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 15 53.3


line stmt bran cond sub pod time code
1             package App::DuckPAN::Cmd::Check;
2             our $AUTHORITY = 'cpan:DDG';
3             # ABSTRACT: Command for checking the requirements
4             $App::DuckPAN::Cmd::Check::VERSION = '1019';
5 1     1   2109 use Moo;
  1         3  
  1         7  
6             with qw( App::DuckPAN::Cmd );
7              
8 1     1   353 use MooX::Options protect_argv => 0;
  1         2  
  1         10  
9              
10             sub run {
11 0     0 0   my ($self) = @_;
12              
13 0           $self->app->empty_cache;
14 0           $self->app->check_requirements; # Exits on missing requirements.
15 0           $self->app->emit_info("EVERYTHING OK! You can now go hacking! :)");
16 0           exit 0;
17             }
18              
19             1;
20              
21             __END__
22              
23             =pod
24              
25             =head1 NAME
26              
27             App::DuckPAN::Cmd::Check - Command for checking the requirements
28              
29             =head1 VERSION
30              
31             version 1019
32              
33             =head1 AUTHOR
34              
35             DuckDuckGo <open@duckduckgo.com>, Zach Thompson <zach@duckduckgo.com>, Zaahir Moolla <moollaza@duckduckgo.com>, Torsten Raudssus <torsten@raudss.us> L<https://raudss.us/>
36              
37             =head1 COPYRIGHT AND LICENSE
38              
39             This software is Copyright (c) 2013 by DuckDuckGo, Inc. L<https://duckduckgo.com/>.
40              
41             This is free software, licensed under:
42              
43             The Apache License, Version 2.0, January 2004
44              
45             =cut