| 1 | package Dist::Zilla::Role::ModuleMaker 6.040; | ||
| 2 | # ABSTRACT: something that injects module files into the dist | ||
| 3 | |||
| 4 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | with qw( | |
| 6 | Dist::Zilla::Role::Plugin | ||
| 7 | Dist::Zilla::Role::FileInjector | ||
| 8 | ); | ||
| 9 | |||
| 10 | 2 | ▶ | use Dist::Zilla::Pragmas; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | #pod =head1 DESCRIPTION | ||
| 15 | #pod | ||
| 16 | #pod Plugins implementing this role have their C<make_module> method called for each | ||
| 17 | #pod module requesting creation by the plugin with this name. It is passed a | ||
| 18 | #pod hashref with the following data: | ||
| 19 | #pod | ||
| 20 | #pod name - the name of the module to make (a MooseX::Types::Perl::ModuleName) | ||
| 21 | #pod | ||
| 22 | #pod Classes composing this role also compose | ||
| 23 | #pod L<FileInjector|Dist::Zilla::Role::FileInjector> and are expected to inject a | ||
| 24 | #pod file for the module being created. | ||
| 25 | #pod | ||
| 26 | #pod =cut | ||
| 27 | |||
| 28 | 2 | requires 'make_module'; | |
| 29 | |||
| 30 | 2 | 1; | |
| 31 | |||
| 32 | __END__ | ||