X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FDist%2FZilla%2FPluginBundle%2FAuthor%2FCCM.pm;h=206eb8361af6f75acbd4c46bda3a565c71ea8616;hb=8be09345f76a4b689e61c5bfc7b880119817d46f;hp=411f4ac9c5b9f07100f1de61d4af3487ccb64065;hpb=79f8cd40f816827dbdde3979a94f404bf660fd28;p=chaz%2Fp5-Dist-Zilla-PluginBundle-Author-CCM diff --git a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm index 411f4ac..206eb83 100644 --- a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm +++ b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm @@ -6,13 +6,24 @@ package Dist::Zilla::PluginBundle::Author::CCM; use warnings; use strict; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION use Dist::Zilla::Util; use Moose; use namespace::autoclean; +has authority => ( + is => 'ro', + isa => 'Str', + lazy => 1, + default => sub { + my $self = shift; + $self->payload->{'Authority.authority'} // $self->payload->{authority} // 'cpan:CCM'; + }, +); + + has installer => ( is => 'ro', isa => 'Str', @@ -88,7 +99,7 @@ sub configure { ['Test::ReportPrereqs'], # METADATA - ['Authority' => {do_munging => 0}], + ['Authority' => {authority => $self->authority, do_munging => 0}], ['MetaJSON'], ['MetaYAML'], ['MetaNoIndex' => {directory => [@no_index]}], @@ -156,7 +167,7 @@ Dist::Zilla::PluginBundle::Author::CCM - A plugin bundle for distributions built =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS @@ -265,6 +276,10 @@ You probably don't want to use this. =head1 ATTRIBUTES +=head2 authority + +Specify the release authority. Defaults to C. + =head2 installer Specify which installer to use, such as: