NAME

Mojolicious::Plugin::GitConfig - Mojolicious Plugin for using Config::GitLike as the main configuration provider

VERSION

version 1.0

DESCRIPTION

This modules uses the Config::GitLike Module to implement the Mojolicious App configuration.

# uses the default git repository configuration files
$self->plugin('GitConfig' => {git=>1});

# uses a given configuration file
$self->plugin('GitConfig' => {file=>"myconfig.conf"});

# uses the default Mojolicious configuration files
$self->plugin('GitConfig');

$self->gitconfig() returns the Config::GitLike class

ATTRIBUTES

configdata

attribute holding the configuration data after loading the configuration file/files

METHODS

register

method called by Mojolicous while loading this plugin

@param #1 - the class itself
@param #2 - the mojolicious app context
@param #3 - the configuration provided by loading the plugin

AUTHOR

Dominik Meyer <dmeyer@federationhq.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Dominik Meyer.

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

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Mojolicious::Plugin::GitConfig/.

BUGS

Please report any bugs or feature requests by email to byterazor@federationhq.de.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Dominik Meyer.

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