File Coverage

blib/lib/Dist/Zilla/Role/InstallTool.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Dist::Zilla::Role::InstallTool 6.030;
2             # ABSTRACT: something that creates an install program for a dist
3              
4 14     14   10575 use Moose::Role;
  14         44  
  14         153  
5             with qw(
6             Dist::Zilla::Role::Plugin
7             Dist::Zilla::Role::FileInjector
8             );
9              
10 14     14   81347 use Dist::Zilla::Pragmas;
  14         43  
  14         134  
11              
12 14     14   186 use namespace::autoclean;
  14         71  
  14         137  
13              
14             #pod =head1 DESCRIPTION
15             #pod
16             #pod Plugins implementing InstallTool have their C<setup_installer> method called to
17             #pod inject files after all other file injection and munging has taken place.
18             #pod They're expected to produce files needed to make the distribution
19             #pod installable, like F<Makefile.PL> or F<Build.PL> and add them with the
20             #pod C<add_file> method provided by L<Dist::Zilla::Role::FileInjector>, which is
21             #pod also composed by this role.
22             #pod
23             #pod =cut
24              
25             requires 'setup_installer';
26              
27             1;
28              
29             __END__
30              
31             =pod
32              
33             =encoding UTF-8
34              
35             =head1 NAME
36              
37             Dist::Zilla::Role::InstallTool - something that creates an install program for a dist
38              
39             =head1 VERSION
40              
41             version 6.030
42              
43             =head1 DESCRIPTION
44              
45             Plugins implementing InstallTool have their C<setup_installer> method called to
46             inject files after all other file injection and munging has taken place.
47             They're expected to produce files needed to make the distribution
48             installable, like F<Makefile.PL> or F<Build.PL> and add them with the
49             C<add_file> method provided by L<Dist::Zilla::Role::FileInjector>, which is
50             also composed by this role.
51              
52             =head1 PERL VERSION
53              
54             This module should work on any version of perl still receiving updates from
55             the Perl 5 Porters. This means it should work on any version of perl released
56             in the last two to three years. (That is, if the most recently released
57             version is v5.40, then this module should work on both v5.40 and v5.38.)
58              
59             Although it may work on older versions of perl, no guarantee is made that the
60             minimum required version will not be increased. The version may be increased
61             for any reason, and there is no promise that patches will be accepted to lower
62             the minimum required perl.
63              
64             =head1 AUTHOR
65              
66             Ricardo SIGNES 😏 <cpan@semiotic.systems>
67              
68             =head1 COPYRIGHT AND LICENSE
69              
70             This software is copyright (c) 2023 by Ricardo SIGNES.
71              
72             This is free software; you can redistribute it and/or modify it under
73             the same terms as the Perl 5 programming language system itself.
74              
75             =cut