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