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.

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.