« blib/lib/Dist/Zilla/Plugin/Run/Clean.pm
↑ Summary
blib/lib/Dist/Zilla/Plugin/Run/BeforeArchive.pm »
| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Dist::Zilla::Plugin::Run::AfterMint; | ||
| 5 | # ABSTRACT: Execute a command after a new distribution is minted | ||
| 6 | |||
| 7 | 1 | our $VERSION = '0.050'; | |
| 8 | |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | with qw( | |
| 11 | Dist::Zilla::Role::AfterMint | ||
| 12 | Dist::Zilla::Plugin::Run::Role::Runner | ||
| 13 | ); | ||
| 14 | |||
| 15 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 1 | ▶ | sub after_mint { |
|
Subroutine
after_mint: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 1 | my ($self, $param) = @_; | |
| 19 | $self->_call_script({ | ||
| 20 | dir => $param->{mint_root}, | ||
| 21 | 1 | 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 | 1; | |
| 42 | |||
| 43 | __END__ | ||