| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
Dist::Zilla::Role::ExecFiles - something that finds files to install as executables
version 4.200008
Ricardo SIGNES <rjbs@cpan.org>
This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
package Dist::Zilla::Role::ExecFiles; BEGIN { $Dist::Zilla::Role::ExecFiles::VERSION = '4.200008'; } # ABSTRACT: something that finds files to install as executables use Moose::Role; with 'Dist::Zilla::Role::FileFinder'; requires 'dir'; sub find_files { my ($self) = @_; my $dir = $self->dir; my $files = $self->zilla->files->grep(sub { index($_->name, "$dir/") == 0 }); } 1; __END__