| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
Dist::Zilla::PluginBundle::FakeClassic - build something more or less like a "classic" CPAN dist
version 4.200008
Ricardo SIGNES <rjbs@cpan.org>
This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
package Dist::Zilla::PluginBundle::FakeClassic; BEGIN { $Dist::Zilla::PluginBundle::FakeClassic::VERSION = '4.200008'; } # ABSTRACT: build something more or less like a "classic" CPAN dist use Moose; extends 'Dist::Zilla::PluginBundle::Classic'; use Moose::Autobox; around bundle_config => sub { my ($orig, $self, $arg) = @_; my @config = $self->$orig($arg); for my $i (0 .. $#config) { if ($config[ $i ][1] eq 'Dist::Zilla::Plugin::UploadToCPAN') { require Dist::Zilla::Plugin::FakeRelease; $config[ $i ] = [ "$arg->{name}/FakeRelease", 'Dist::Zilla::Plugin::FakeRelease', $config[ $i ][2] ]; } } return @config; }; __PACKAGE__->meta->make_immutable; no Moose; 1; __END__