| 1 | package Dist::Zilla::Role::NameProvider 6.040; | ||
| 2 | # ABSTRACT: something that provides a name for the dist | ||
| 3 | |||
| 4 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | with 'Dist::Zilla::Role::Plugin'; | |
| 6 | |||
| 7 | 2 | ▶ | use Dist::Zilla::Pragmas; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | #pod =head1 DESCRIPTION | ||
| 10 | #pod | ||
| 11 | #pod Plugins implementing this role must provide a C<provide_name> method that | ||
| 12 | #pod will be called when setting the dist's name. | ||
| 13 | #pod | ||
| 14 | #pod If a NameProvider offers a name but one has already been set, an | ||
| 15 | #pod exception will be raised. If C<provide_name> returns undef, it will be | ||
| 16 | #pod ignored. | ||
| 17 | #pod | ||
| 18 | #pod =cut | ||
| 19 | |||
| 20 | 2 | requires 'provide_name'; | |
| 21 | |||
| 22 | 2 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 2 | 1; | |
| 24 | |||
| 25 | __END__ | ||