Egg::Helper::Config::YAML - The configuration of the YAML format is output.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Helper::Config::YAML - The configuration of the YAML format is output.

SYNOPSIS

Top

  % 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');

DESCRIPTION

Top

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.

SEE ALSO

Top

Egg::Release, Egg::Helper, Egg::Plugin::ConfigLoader, Egg::Plugin::File::Rotate,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.