-
-
04 Sep 2017 23:04:50 UTC
- Distribution: Dist-Zilla-Config-Slicer
- Module version: 0.202
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (3923 / 1 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (22.42KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Dist::Zilla::Role::PluginBundle::Config::Slicer - Pass Portions of Bundle Config to Plugins
VERSION
version 0.202
SYNOPSIS
# in Dist::Zilla::PluginBundle::MyBundle with ( 'Dist::Zilla::Role::PluginBundle', # or PluginBundle::Easy 'Dist::Zilla::Role::PluginBundle::Config::Slicer' ); # Config::Slicer should probably be last # (unless you're doing something more complex)
DESCRIPTION
This role enables your Dist::Zilla Plugin Bundle to accept configuration customizations for the plugins it will load and merge them transparently.
# dist.ini [@MyBundle] option = 1 Included::Plugin.attribute = overwrite value AnotherPlug.array[0] = append value AnotherPlug.array[1] = append another value
See "CONFIGURATION SYNTAX" in Config::MVP::Slicer for details on how the configurations are handled.
This role adds a method modifier to
bundle_config
, which is the method that the rootPluginBundle
role requires, and thatPluginBundle::Easy
wraps.After
bundle_config
is called the modifier will update the returned plugin configurations with any values that were customized in the main bundle config.Most of the work is done by Dist::Zilla::Config::Slicer (a subclass of Config::MVP::Slicer). Check out those modules if you want the same functionality but don't want to consume this role in your bundle.
SEE ALSO
AUTHOR
Randy Stauner <rwstauner@cpan.org>
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.
Module Install Instructions
To install Dist::Zilla::Config::Slicer, copy and paste the appropriate command in to your terminal.
cpanm Dist::Zilla::Config::Slicer
perl -MCPAN -e shell install Dist::Zilla::Config::Slicer
For more information on module installation, please visit the detailed CPAN module installation guide.