NAME

Config::MVP::Reader::Findable - a config class that Config::MVP::Reader::Finder can find

VERSION

version 0.093350

DESCRIPTION

Config::MVP::Reader::Findable is a role meant to be composed alongside Config::MVP::Reader. It indicates to Config::MVP::Reader::Finder that the composing config reader can look in a directory and decide whether there's a relevant file in the configuration root.

METHODS

default_extension

This method, which must be composed by classes including this role, returns the default extension used by files in the format this reader can read.

When the Finder tries to find configuration, it have a directory root and a basename. Each (Findable) reader that it tries in turn will look for a file basename.extension in the root directory. If exactly one file is found, that file is read.

can_be_found

This method gets the same arguments as read_config and returns true if this config reader will be able to handle the request.

filename_from_args

This method gets the same arguments as read_config and will return the fully qualified filename of the file it would want to read for configuration. This file is not guaranteed to exist or be readable.

AUTHOR

Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.