| 1 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Dist::Zilla::Plugin::Run::AfterRelease; | ||
| 5 | # ABSTRACT: execute a command of the distribution after release | ||
| 6 | |||
| 7 | 4 | our $VERSION = '0.050'; | |
| 8 | |||
| 9 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | with qw( | |
| 11 | Dist::Zilla::Role::AfterRelease | ||
| 12 | Dist::Zilla::Plugin::Run::Role::Runner | ||
| 13 | ); | ||
| 14 | |||
| 15 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 4 | ▶ | sub after_release { |
|
Subroutine
after_release: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 4 | my ( $self, $archive ) = @_; | |
| 19 | $self->_call_script({ | ||
| 20 | archive => $archive, | ||
| 21 | 4 | ▶ | pos => [$archive, sub { $self->zilla->version }] |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 22 | }); | ||
| 23 | } | ||
| 24 | |||
| 25 | #pod =head1 SYNOPSIS | ||
| 26 | #pod | ||
| 27 | #pod [Run::AfterRelease] | ||
| 28 | #pod run = script/myapp_after.pl --archive %a --dir %d --version %v | ||
| 29 | #pod | ||
| 30 | #pod or | ||
| 31 | #pod | ||
| 32 | #pod [Run::AfterRelease / MyAppAfter] | ||
| 33 | #pod run = script/myapp_after.pl %a %d %v | ||
| 34 | #pod | ||
| 35 | #pod =head1 DESCRIPTION | ||
| 36 | #pod | ||
| 37 | #pod This plugin executes the specified command after releasing. | ||
| 38 | #pod | ||
| 39 | #pod =head1 POSITIONAL PARAMETERS | ||
| 40 | #pod | ||
| 41 | #pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS> | ||
| 42 | #pod for the list of common formatting variables available to all plugins. | ||
| 43 | #pod | ||
| 44 | #pod For backward compatibility: | ||
| 45 | #pod | ||
| 46 | #pod =for :list | ||
| 47 | #pod * The 1st C<%s> will be replaced by the archive of the release. | ||
| 48 | #pod * The 2nd C<%s> will be replaced by the distribution version. | ||
| 49 | #pod | ||
| 50 | #pod =cut | ||
| 51 | |||
| 52 | 4 | 1; | |
| 53 | |||
| 54 | __END__ | ||