| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
4
|
|
|
4
|
|
14457
|
use strict; |
|
|
4
|
|
|
|
|
12
|
|
|
|
4
|
|
|
|
|
169
|
|
|
2
|
4
|
|
|
4
|
|
29
|
use warnings; |
|
|
4
|
|
|
|
|
11
|
|
|
|
4
|
|
|
|
|
347
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::Run::AfterBuild; |
|
5
|
|
|
|
|
|
|
# ABSTRACT: execute a command of the distribution after build |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.048'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
35
|
use Moose; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
44
|
|
|
10
|
|
|
|
|
|
|
with qw( |
|
11
|
|
|
|
|
|
|
Dist::Zilla::Role::AfterBuild |
|
12
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Run::Role::Runner |
|
13
|
|
|
|
|
|
|
); |
|
14
|
|
|
|
|
|
|
|
|
15
|
4
|
|
|
4
|
|
29476
|
use Path::Tiny 'path'; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
371
|
|
|
16
|
4
|
|
|
4
|
|
31
|
use namespace::autoclean; |
|
|
4
|
|
|
|
|
12
|
|
|
|
4
|
|
|
|
|
45
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub after_build { |
|
19
|
6
|
|
|
6
|
0
|
141188
|
my ($self, $param) = @_; |
|
20
|
|
|
|
|
|
|
$self->_call_script({ |
|
21
|
|
|
|
|
|
|
dir => $param->{ build_root }, |
|
22
|
6
|
|
|
4
|
|
43
|
pos => [path($param->{ build_root })->canonpath, sub { $self->zilla->version }] |
|
|
4
|
|
|
|
|
140
|
|
|
23
|
|
|
|
|
|
|
}); |
|
24
|
|
|
|
|
|
|
} |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
#pod |
|
28
|
|
|
|
|
|
|
#pod [Run::AfterBuild] |
|
29
|
|
|
|
|
|
|
#pod run = script/do_this.pl --dir %d --version %v |
|
30
|
|
|
|
|
|
|
#pod run = script/do_that.pl |
|
31
|
|
|
|
|
|
|
#pod |
|
32
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
33
|
|
|
|
|
|
|
#pod |
|
34
|
|
|
|
|
|
|
#pod This plugin executes the specified command after building the distribution. |
|
35
|
|
|
|
|
|
|
#pod |
|
36
|
|
|
|
|
|
|
#pod =head1 POSITIONAL PARAMETERS |
|
37
|
|
|
|
|
|
|
#pod |
|
38
|
|
|
|
|
|
|
#pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS> |
|
39
|
|
|
|
|
|
|
#pod for the list of common formatting variables available to all plugins. |
|
40
|
|
|
|
|
|
|
#pod |
|
41
|
|
|
|
|
|
|
#pod For backward compatibility: |
|
42
|
|
|
|
|
|
|
#pod |
|
43
|
|
|
|
|
|
|
#pod =for :list |
|
44
|
|
|
|
|
|
|
#pod * The 1st C<%s> will be replaced by the directory in which the distribution was built. |
|
45
|
|
|
|
|
|
|
#pod * The 2nd C<%s> will be replaced by the distribution version. |
|
46
|
|
|
|
|
|
|
#pod |
|
47
|
|
|
|
|
|
|
#pod =cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=pod |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=encoding UTF-8 |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 NAME |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Run::AfterBuild - execute a command of the distribution after build |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 VERSION |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
version 0.048 |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
[Run::AfterBuild] |
|
68
|
|
|
|
|
|
|
run = script/do_this.pl --dir %d --version %v |
|
69
|
|
|
|
|
|
|
run = script/do_that.pl |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This plugin executes the specified command after building the distribution. |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 POSITIONAL PARAMETERS |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
See L<Dist::Zilla::Plugin::Run/CONVERSIONS> |
|
78
|
|
|
|
|
|
|
for the list of common formatting variables available to all plugins. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
For backward compatibility: |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=over 4 |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item * |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The 1st C<%s> will be replaced by the directory in which the distribution was built. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item * |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
The 2nd C<%s> will be replaced by the distribution version. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=back |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 SUPPORT |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Run> |
|
97
|
|
|
|
|
|
|
(or L<bug-Dist-Zilla-Plugin-Run@rt.cpan.org|mailto:bug-Dist-Zilla-Plugin-Run@rt.cpan.org>). |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
|
100
|
|
|
|
|
|
|
L<http://dzil.org/#mailing-list>. |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
|
103
|
|
|
|
|
|
|
L<C<#distzilla> on C<irc.perl.org>|irc://irc.perl.org/#distzilla>. |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 AUTHOR |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Torsten Raudssus <torsten@raudss.us> L<https://raudss.us/> |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENCE |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This software is copyright (c) 2010 by L<Raudssus Social Software|https://raudss.us/>. |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
114
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |