| 1 | package Dist::Zilla::Role::FileGatherer 6.040; | ||
| 2 | # ABSTRACT: something that gathers files into the distribution | ||
| 3 | |||
| 4 | 47 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 47 | with 'Dist::Zilla::Role::Plugin', | |
| 6 | 'Dist::Zilla::Role::FileInjector'; | ||
| 7 | |||
| 8 | 47 | ▶ | use Dist::Zilla::Pragmas; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 47 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | #pod =head1 DESCRIPTION | ||
| 13 | #pod | ||
| 14 | #pod A FileGatherer plugin is a special sort of | ||
| 15 | #pod L<FileInjector|Dist::Zilla::Role::FileInjector> that runs early in the build | ||
| 16 | #pod cycle, finding files to include in the distribution. It is expected to call | ||
| 17 | #pod its C<add_file> method to add one or more files to inclusion. | ||
| 18 | #pod | ||
| 19 | #pod Plugins implementing FileGatherer must provide a C<gather_files> method, which | ||
| 20 | #pod will be called during the build process. | ||
| 21 | #pod | ||
| 22 | #pod =cut | ||
| 23 | |||
| 24 | 47 | requires 'gather_files'; | |
| 25 | |||
| 26 | 47 | 1; | |
| 27 | |||
| 28 | __END__ | ||