root/lang/perl/Nanto/trunk/lib/Nanto/Plugin/ConfigAccessor.pm
@
10530
| Revision 10530, 246 bytes (checked in by tokuhirom, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | package Nanto::Plugin::ConfigAccessor; |
| 2 | use Moose::Role; |
| 3 | use UNIVERSAL::require; |
| 4 | |
| 5 | requires 'base_name'; |
| 6 | |
| 7 | sub config { |
| 8 | my $self = shift; |
| 9 | my $conf_pkg = $self->base_name . '::Config'; |
| 10 | $conf_pkg->use or die $@; |
| 11 | $conf_pkg->load; |
| 12 | } |
| 13 | |
| 14 | 1; |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)