line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
11247
|
use strict; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
114
|
|
2
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
22
|
|
|
3
|
|
|
|
|
234
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::Run::BeforeArchive; |
5
|
|
|
|
|
|
|
# ABSTRACT: execute a command of the distribution before creating the archive |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.049'; |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
43
|
use Moose; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
33
|
|
10
|
|
|
|
|
|
|
with qw( |
11
|
|
|
|
|
|
|
Dist::Zilla::Role::BeforeArchive |
12
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Run::Role::Runner |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
22459
|
use namespace::autoclean; |
|
3
|
|
|
|
|
15
|
|
|
3
|
|
|
|
|
38
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub before_archive { |
18
|
4
|
|
|
4
|
0
|
25085
|
my ($self) = @_; |
19
|
4
|
|
|
|
|
70
|
$self->_call_script({}); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
23
|
|
|
|
|
|
|
#pod |
24
|
|
|
|
|
|
|
#pod [Run::BeforeArchive] |
25
|
|
|
|
|
|
|
#pod run = script/do_this.pl --dir %d --version %v |
26
|
|
|
|
|
|
|
#pod run = script/do_that.pl |
27
|
|
|
|
|
|
|
#pod |
28
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod This plugin executes the specified command before the archive file is built. |
31
|
|
|
|
|
|
|
#pod |
32
|
|
|
|
|
|
|
#pod =head1 POSITIONAL PARAMETERS |
33
|
|
|
|
|
|
|
#pod |
34
|
|
|
|
|
|
|
#pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS> |
35
|
|
|
|
|
|
|
#pod for the list of common formatting variables available to all plugins. |
36
|
|
|
|
|
|
|
#pod |
37
|
|
|
|
|
|
|
#pod =cut |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Run::BeforeArchive - execute a command of the distribution before creating the archive |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
version 0.049 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 SYNOPSIS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
[Run::BeforeArchive] |
58
|
|
|
|
|
|
|
run = script/do_this.pl --dir %d --version %v |
59
|
|
|
|
|
|
|
run = script/do_that.pl |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 DESCRIPTION |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This plugin executes the specified command before the archive file is built. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 POSITIONAL PARAMETERS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
See L<Dist::Zilla::Plugin::Run/CONVERSIONS> |
68
|
|
|
|
|
|
|
for the list of common formatting variables available to all plugins. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SUPPORT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Run> |
73
|
|
|
|
|
|
|
(or L<bug-Dist-Zilla-Plugin-Run@rt.cpan.org|mailto:bug-Dist-Zilla-Plugin-Run@rt.cpan.org>). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
76
|
|
|
|
|
|
|
L<http://dzil.org/#mailing-list>. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
79
|
|
|
|
|
|
|
L<C<#distzilla> on C<irc.perl.org>|irc://irc.perl.org/#distzilla>. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Torsten Raudssus <torsten@raudss.us> L<https://raudss.us/> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENCE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is copyright (c) 2010 by L<Raudssus Social Software|https://raudss.us/>. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |