File Coverage

blib/lib/Dist/Zilla/Plugin/ExecDir.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: install a directory's contents as executables
2              
3             use Moose;
4 17     17   12109  
  17         48  
  17         143  
5             use Dist::Zilla::Pragmas;
6 17     17   117121  
  17         44  
  17         173  
7             use namespace::autoclean;
8 17     17   130  
  17         54  
  17         178  
9             #pod =head1 SYNOPSIS
10             #pod
11             #pod In your F<dist.ini>:
12             #pod
13             #pod [ExecDir]
14             #pod dir = scripts
15             #pod
16             #pod If no C<dir> is provided, the default is F<bin>.
17             #pod
18             #pod =cut
19              
20             has dir => (
21             is => 'ro',
22             isa => 'Str',
23             default => 'bin',
24             );
25              
26             with 'Dist::Zilla::Role::ExecFiles';
27             __PACKAGE__->meta->make_immutable;
28             1;
29              
30              
31             =pod
32              
33             =encoding UTF-8
34              
35             =head1 NAME
36              
37             Dist::Zilla::Plugin::ExecDir - install a directory's contents as executables
38              
39             =head1 VERSION
40              
41             version 6.028
42              
43             =head1 SYNOPSIS
44              
45             In your F<dist.ini>:
46              
47             [ExecDir]
48             dir = scripts
49              
50             If no C<dir> is provided, the default is F<bin>.
51              
52             =head1 PERL VERSION
53              
54             This module should work on any version of perl still receiving updates from
55             the Perl 5 Porters. This means it should work on any version of perl released
56             in the last two to three years. (That is, if the most recently released
57             version is v5.40, then this module should work on both v5.40 and v5.38.)
58              
59             Although it may work on older versions of perl, no guarantee is made that the
60             minimum required version will not be increased. The version may be increased
61             for any reason, and there is no promise that patches will be accepted to lower
62             the minimum required perl.
63              
64             =head1 AUTHOR
65              
66             Ricardo SIGNES 😏 <cpan@semiotic.systems>
67              
68             =head1 COPYRIGHT AND LICENSE
69              
70             This software is copyright (c) 2022 by Ricardo SIGNES.
71              
72             This is free software; you can redistribute it and/or modify it under
73             the same terms as the Perl 5 programming language system itself.
74              
75             =cut