File Coverage

blib/lib/Dist/Zilla/Plugin/Run/AfterMint.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 19 20 95.0


line stmt bran cond sub pod time code
1 1     1   3201670 use strict;
  1         3  
  1         45  
2 1     1   8 use warnings;
  1         2  
  1         78  
3              
4             package Dist::Zilla::Plugin::Run::AfterMint;
5             # ABSTRACT: Execute a command after a new distribution is minted
6              
7             our $VERSION = '0.048';
8              
9 1     1   7 use Moose;
  1         3  
  1         8  
10             with qw(
11             Dist::Zilla::Role::AfterMint
12             Dist::Zilla::Plugin::Run::Role::Runner
13             );
14              
15 1     1   6974 use namespace::autoclean;
  1         2  
  1         11  
16              
17             sub after_mint {
18 1     1 0 200053 my ($self, $param) = @_;
19             $self->_call_script({
20             dir => $param->{mint_root},
21 1         10 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.048
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