NAME
Dist::Zilla::Role::DynamicConfig - A Role that accepts a dynamic configuration
VERSION
version 1.002
DESCRIPTION
This is a role for a Plugin (or possibly other classes) that accepts a dynamic configuration.
Plugins performing this role must define "separate_local_config".
ATTRIBUTES
_config
A hashref where the dynamic options will be stored.
Do not attempt to assign to this from your dist.ini.
METHODS
BUILDARGS
Copied/modified from Dist::Zilla::Plugin::Prereqs to allow arbitrary values to be specified.
This overwrites the Moose::Object method called to prepare arguments before instantiation.
It separates the expected arguments (including anything caught by "separate_local_config") and places the remaining unknown/dynamic arguments into "_config".
separate_local_config
Separate any arguments that should be stored directly on the object rather than in the dynamic "_config" attribute.
Remove those arguments from the passed in hashref, make any necessary modifications (like renaming the keys if desired), and return a hashref with the result.
Required.
SUPPORT
Perldoc
You can find documentation for this module with the perldoc command.
perldoc Dist::Zilla::Role::DynamicConfig
Websites
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
Search CPAN
The default CPAN search engine, useful to view POD in HTML format.
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dist-Zilla-Role-DynamicConfig
CPAN Ratings
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules.
CPAN Testers
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions.
http://www.cpantesters.org/distro/D/Dist-Zilla-Role-DynamicConfig
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
http://matrix.cpantesters.org/?dist=Dist-Zilla-Role-DynamicConfig
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
http://deps.cpantesters.org/?module=Dist::Zilla::Role::DynamicConfig
Bugs / Feature Requests
Please report any bugs or feature requests by email to bug-dist-zilla-role-dynamicconfig at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dist-Zilla-Role-DynamicConfig. You will be automatically notified of any progress on the request by the system.
Source Code
http://github.com/rwstauner/Dist-Zilla-Role-DynamicConfig
git clone http://github.com/rwstauner/Dist-Zilla-Role-DynamicConfig
AUTHOR
Randy Stauner <rwstauner@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 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.