| 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 | package Dist::Zilla::Plugin::BlockRelease; # git description: v0.002-17-g4b5f572 | ||||||||||
| 4 | # ABSTRACT: Prevent a release from occurring | ||||||||||
| 5 | # KEYWORDS: plugin distribution release sanity safety prevent | ||||||||||
| 6 | # vim: set ts=8 sts=4 sw=4 tw=115 et : | ||||||||||
| 7 | |||||||||||
| 8 | 1 | our $VERSION = '0.003'; | |||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | with 'Dist::Zilla::Role::BeforeRelease', | |||||||||
| 12 | 'Dist::Zilla::Role::Releaser'; | ||||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | use Term::ANSIColor 3.00 'colored'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | |||||||||||
| 17 | sub BUILD | ||||||||||
| 18 | 1 | ▶ | { | ||||||||
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 19 | 1 | my $self = shift; | |||||||||
| 20 | 1 | $self->log('releases will be prevented!'); | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | around dump_config => sub | ||||||||||
| 24 | 0 | ▶ | { | ||||||||
|
Subroutine
__ANON__: not called CC=3 SCAR=24.8
| |||||||||||
| 25 | 0 | my ($orig, $self) = @_; | |||||||||
| 26 | 0 | my $config = $self->$orig; | |||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | my $data = { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | blessed($self) ne __PACKAGE__ ? ( version => $VERSION ) : (), | ||||||||||
| 30 | }; | ||||||||||
| 31 | 0 | ▶ | $config->{+__PACKAGE__} = $data if keys %$data; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | return $config; | |||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | sub before_release | ||||||||||
| 37 | 1 | ▶ | { | ||||||||
|
Subroutine
before_release: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 38 | 1 | my $self = shift; | |||||||||
| 39 | 1 | $self->log_fatal(colored('halting release', 'yellow')); | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub release {} | ||||||||
|
Subroutine
release: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 43 | |||||||||||
| 44 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 45 | |||||||||||
| 46 | __END__ | ||||||||||