Egg::Helper::Config::YAML - The configuration of the YAML format is output.
% cd /path/to/MyApp/bin % ./myapp_helper.pl Config::YAML ...... ... % vi ./etc/myapp.yaml ....... ....
And, the controller is edited.
% cd /path/to/MyApp % vi ./lib/myapp.pm package MyApp; ........ .... __PACKAGE__->egg_startup(\'/path/to/MyApp/etc/myapp.yaml');
It is a helper who output the sample of the configuration of YAML format.
The file is output to 'etc' directory of the project.
To pass passing this file to 'egg_startup' by the SCALAR reference after it outputs it, the controller is edited.
When the project is started by this, the configuration of the YAML form comes to be read.
It is Egg::Plugin::ConfigLoader in the plugin. Please do not forget to specify.
If the great this file already exists when outputting it, the file rotation is done.
Masatoshi Mizuno <email@example.com>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.