| 1 | package Dist::Zilla::PluginBundle::Author::OpusVL::ToCPAN; | ||
| 2 | |||
| 3 | use Moose; | ||
| 4 | use 5.014; | ||
| 5 | |||
| 6 | with ( | ||
| 7 | 'Dist::Zilla::Role::PluginBundle::Easy', | ||
| 8 | 'Dist::Zilla::Role::PluginBundle::PluginRemover', | ||
| 9 | 'Dist::Zilla::Role::PluginBundle::Config::Slicer', | ||
| 10 | ); | ||
| 11 | |||
| 12 | our $VERSION = '0.015'; | ||
| 13 | |||
| 14 | sub configure { | ||
| 15 | my $self = shift; | ||
| 16 | my $remove = $self->payload->{ $self->plugin_remover_attribute } || []; | ||
| 17 | |||
| 18 | $self->add_bundle('@Author::OpusVL', { | ||
| 19 | '-remove' => [ 'CPAN::Mini::Inject::REST', 'Repository', @$remove ], | ||
| 20 | mcpani_host => 'fake', | ||
| 21 | }); | ||
| 22 | |||
| 23 | $self->add_plugins(qw( | ||
| 24 | UploadToCPAN | ||
| 25 | GitHub::Meta | ||
| 26 | )); | ||
| 27 | } | ||
| 28 | __PACKAGE__->meta->make_immutable; | ||
| 29 | no Moose; | ||
| 30 | 1; | ||
| 31 | __END__ |