Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added no_makemaker flag

  • Loading branch information...
commit 6ddd275592612a64b871d26f1aa2c3ca0f758adf 1 parent bb1a445
@Getty authored
Showing with 16 additions and 2 deletions.
  1. +16 −2 lib/Dist/Zilla/PluginBundle/Author/GETTY.pm
View
18 lib/Dist/Zilla/PluginBundle/Author/GETTY.pm
@@ -54,6 +54,7 @@ You can configure it (given values are default):
no_cpan = 0
duckpan = 0
no_install = 0
+ no_makemaker = 0
If the C<task> argument is given to the bundle, PodWeaver is replaced with
TaskWeaver and Git::NextVersion is replaced with AutoVersion, you can also
@@ -132,6 +133,13 @@ has no_install => (
default => sub { $_[0]->payload->{no_install} },
);
+has no_makemaker => (
+ is => 'ro',
+ isa => 'Bool',
+ lazy => 1,
+ default => sub { $_[0]->payload->{no_makemaker} },
+);
+
has is_task => (
is => 'ro',
isa => 'Bool',
@@ -166,10 +174,16 @@ sub configure {
$self->log_fatal("you must not specify both author and no_cpan")
if $self->no_cpan and $self->author ne 'GETTY';
- if ($self->no_cpan) {
+ $self->log_fatal("no_install can't be used together with no_makemaker")
+ if $self->no_install and $self->no_makemaker;
+
+ if ($self->no_cpan || $self->no_makemaker) {
+ my @removes;
+ push @removes, 'UploadToCPAN' if $self->no_cpan;
+ push @removes, 'MakeMaker' if $self->no_makemaker;
$self->add_bundle('Filter' => {
-bundle => '@Basic',
- -remove => ['UploadToCPAN'],
+ -remove => [@removes],
});
} else {
$self->add_bundle('@Basic');
Please sign in to comment.
Something went wrong with that request. Please try again.