| 1 | package Dist::Dzpl::Plugin::Hook::FilePruner; | ||
| 2 | |||
| 3 | use Moose; | ||
| 4 | with qw/ Dist::Zilla::Role::FilePruner /; | ||
| 5 | |||
| 6 | has callback => qw/ is ro required 1 isa CodeRef /; | ||
| 7 | |||
| 8 | sub prune_files { | ||
| 9 | my $self = shift; | ||
| 10 | return $self->callback->( $self->zilla, $self ); | ||
| 11 | } | ||
| 12 | |||
| 13 | __PACKAGE__->meta->make_immutable; | ||
| 14 | no Moose; | ||
| 15 | 1; |