| 1 | package Git::CPAN::Patch::Command::SendPatch; | ||||||||||
| 2 | 1 | our $AUTHORITY = 'cpan:YANICK'; | |||||||||
| 3 | #ABSTRACT: create patch files and submit them to RT | ||||||||||
| 4 | 1 | $Git::CPAN::Patch::Command::SendPatch::VERSION = '2.5.2'; | |||||||||
| 5 | 1 | ▶ | use 5.10.0; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use MooseX::App::Command; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | with 'Git::CPAN::Patch::Role::Git'; | |||||||||
| 13 | 1 | with 'Git::CPAN::Patch::Role::Patch'; | |||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | use experimental qw/ | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | signatures | ||||||||||
| 17 | postderef | ||||||||||
| 18 | 1 | /; | |||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub run ($self) { | ||||||||
|
Subroutine
run: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 21 | 0 | $self->format_patch; | |||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | if ( $self->nbr_patches > 1 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 0 | say "Refusing to send more than one patch (each patch email will be in its own RT ticket)."; | |||||||||
| 25 | 0 | say "Run git-cpan-send-email manually to override, or squash your commits."; | |||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | say and unlink($_) for $self->all_patches; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | |||||||||||
| 29 | 0 | return; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 0 | $self->send_emails( $self->all_patches ); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 36 | |||||||||||
| 37 | 1 | 1; | |||||||||
| 38 | |||||||||||
| 39 | __END__ | ||||||||||