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