]> Dogcows Code - chaz/p5-Dist-Zilla-PluginBundle-Author-CCM/blobdiff - lib/Dist/Zilla/PluginBundle/Author/CCM.pm
Version 0.003
[chaz/p5-Dist-Zilla-PluginBundle-Author-CCM] / lib / Dist / Zilla / PluginBundle / Author / CCM.pm
index 411f4ac9c5b9f07100f1de61d4af3487ccb64065..206eb8361af6f75acbd4c46bda3a565c71ea8616 100644 (file)
@@ -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<cpan:CCM>.
+
 =head2 installer
 
 Specify which installer to use, such as:
This page took 0.026832 seconds and 4 git commands to generate.