| 1 | package Dist::Zilla::Plugin::ExecDir 6.040; | ||
| 2 | # ABSTRACT: install a directory's contents as executables | ||
| 3 | |||
| 4 | 17 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 17 | ▶ | use Dist::Zilla::Pragmas; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 17 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | #pod =head1 SYNOPSIS | ||
| 11 | #pod | ||
| 12 | #pod In your F<dist.ini>: | ||
| 13 | #pod | ||
| 14 | #pod [ExecDir] | ||
| 15 | #pod dir = scripts | ||
| 16 | #pod | ||
| 17 | #pod If no C<dir> is provided, the default is F<bin>. | ||
| 18 | #pod | ||
| 19 | #pod =cut | ||
| 20 | |||
| 21 | 17 | has dir => ( | |
| 22 | is => 'ro', | ||
| 23 | isa => 'Str', | ||
| 24 | default => 'bin', | ||
| 25 | ); | ||
| 26 | |||
| 27 | 17 | with 'Dist::Zilla::Role::ExecFiles'; | |
| 28 | 17 | __PACKAGE__->meta->make_immutable; | |
| 29 | 17 | 1; | |
| 30 | |||
| 31 | __END__ | ||