File Coverage

blib/lib/Mojolicious/Command/generate/cpanfile.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2 1     1   36349 use strict;
  1         3  
  1         56  
3              
4             package Mojolicious::Command::generate::cpanfile;
5              
6 1     1   994 use Mojolicious;
  1         554051  
  1         7  
7 1     1   32 use Mojo::Base 'Mojolicious::Command';
  1         7  
  1         5  
8              
9             has description => "Generate cpanfile for your app";
10             has usage => "usage: $0 generate cpanfile\n";
11              
12             sub run {
13 1     1 1 2546 my ( $self, @args ) = @_;
14 1         14 $self->render_to_rel_file( 'cpanfile', 'cpanfile' );
15             }
16              
17             1;
18              
19             =pod
20              
21             =head1 NAME
22              
23             Mojolicious::Command::generate::cpanfile
24              
25             =head1 VERSION
26              
27             version 0.1.0
28              
29             =head1 AUTHOR
30              
31             Yogesh Pandit
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2013 by Yogesh Pandit.
36              
37             This is free software; you can redistribute it and/or modify it under
38             the same terms as the Perl 5 programming language system itself.
39              
40             =cut
41              
42             __DATA__