1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
# vim: set ts=2 sts=2 sw=2 expandtab smarttab:
#
# This file is part of Dist-Zilla-Config-Slicer
#
# This software is copyright (c) 2011 by Randy Stauner.
#
# This is free software; you can redistribute it and/or modify it under
# the same terms as the Perl 5 programming language system itself.
#
use strict;
use warnings;
package Dist::Zilla::PluginBundle::ConfigSlicer;
our $AUTHORITY = 'cpan:RWSTAUNER';
# ABSTRACT: Load another bundle and override its plugin configurations
$Dist::Zilla::PluginBundle::ConfigSlicer::VERSION = '0.202';
use Moose;
extends 'Dist::Zilla::PluginBundle::Filter';
with qw(
Dist::Zilla::Role::PluginBundle::Config::Slicer
);
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=for :stopwords Randy Stauner ACKNOWLEDGEMENTS
=head1 NAME
Dist::Zilla::PluginBundle::ConfigSlicer - Load another bundle and override its plugin configurations
=head1 VERSION
version 0.202
=for test_synopsis 1;
__END__
=head1 SYNOPSIS
; in your dist.ini:
[@ConfigSlicer]
-bundle = @Classic
-remove = PodVersion
-remove = Manifest
option = for_classic
ManifestSkip.skipfile = something.weird
=head1 DESCRIPTION
This plugin bundle actually wraps and modifies another plugin bundle.
It extends L<< C<@Filter>|Dist::Zilla::PluginBundle::Filter >>
and additionally consumes
L<Dist::Zilla::Role::PluginBundle::Config::Slicer|Dist::Zilla::Role::PluginBundle::Config::Slicer>
so that any plugin options will be passed in.
This way you can override the plugin configuration
for any bundle that doesn't consume
L<Dist::Zilla::Role::PluginBundle::Config::Slicer|Dist::Zilla::Role::PluginBundle::Config::Slicer>
as if it did!
=head1 SEE ALSO
=over 4
=item *
L<Dist::Zilla::PluginBundle::Filter>
=item *
L<Dist::Zilla::Role::PluginBundle::Config::Slicer>
=back
=head1 AUTHOR
Randy Stauner <rwstauner@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|