Skip to content

Commit

Permalink
GatherDir replaced with Git::GatherDir
Browse files Browse the repository at this point in the history
  • Loading branch information
Getty committed Dec 31, 2014
1 parent 72ba140 commit acc5f0e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions lib/Dist/Zilla/PluginBundle/Author/GETTY.pm
Expand Up @@ -421,23 +421,19 @@ sub configure {
$self->log_fatal("no_install can't be used together with no_makemaker")
if $self->no_install and $self->no_makemaker;

$self->add_plugins(qw(
Git::GatherDir
));

my @removes = ('GatherDir');
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 => [@removes],
});
} else {
$self->add_bundle('@Basic');
}

if ($self->no_install) {
$self->add_plugins(qw(
MakeMaker::SkipInstall
));
}
$self->add_bundle('Filter' => {
-bundle => '@Basic',
-remove => [@removes],
});

unless ($self->manual_version) {
if ($self->is_task) {
Expand Down

0 comments on commit acc5f0e

Please sign in to comment.