File Coverage

blib/lib/Mojolicious/Command/Author/generate/makefile.pm
Criterion Covered Total %
statement 4 4 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 1 1 100.0
total 7 7 100.0


line stmt bran cond sub pod time code
1             package Mojolicious::Command::Author::generate::makefile;
2 1     1   8 use Mojo::Base 'Mojolicious::Command';
  1         4  
  1         8  
3              
4             has description => 'Generate "Makefile.PL"';
5             has usage => sub { shift->extract_usage };
6              
7 1     1 1 76 sub run { shift->render_to_rel_file('makefile', 'Makefile.PL') }
8              
9             1;
10              
11             =encoding utf8
12              
13             =head1 NAME
14              
15             Mojolicious::Command::Author::generate::makefile - Makefile generator command
16              
17             =head1 SYNOPSIS
18              
19             Usage: APPLICATION generate makefile [OPTIONS]
20              
21             ./myapp.pl generate makefile
22             mojo generate makefile
23              
24             Options:
25             -h, --help Show this summary of available options
26              
27             =head1 DESCRIPTION
28              
29             L generates C files for applications.
30              
31             This is a core command, that means it is always enabled and its code a good example for learning to build new commands,
32             you're welcome to fork it.
33              
34             See L for a list of commands that are available by default.
35              
36             =head1 ATTRIBUTES
37              
38             L inherits all attributes from L and implements
39             the following new ones.
40              
41             =head2 description
42              
43             my $description = $makefile->description;
44             $makefile = $makefile->description('Foo');
45              
46             Short description of this command, used for the command list.
47              
48             =head2 usage
49              
50             my $usage = $makefile->usage;
51             $makefile = $makefile->usage('Foo');
52              
53             Usage information for this command, used for the help screen.
54              
55             =head1 METHODS
56              
57             L inherits all methods from L and implements
58             the following new ones.
59              
60             =head2 run
61              
62             $makefile->run(@ARGV);
63              
64             Run this command.
65              
66             =head1 SEE ALSO
67              
68             L, L, L.
69              
70             =cut
71              
72             __DATA__