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