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