++ed by:
NOZZZZZ MATEU KARUPA GFUJI KTAT

11 PAUSE users
8 non-PAUSE users.

MATSUNO★…Tokuhiro
and 32 contributors

NAME

Amon2::Setup::Flavor - Abstract base class for flavors.

DESCRIPTION

This is an abstract base class for flavors. But you don't need to inherit this class. Amon2 uses duck typing. You should implement only Class->run method.

In Amon2, flavor means setup script.

METHODS

This class provides some useful methods to write setup script.

$flavor->init()

Hook point to initialize module directory.

$flavor->mkpath($dir)

same as `mkdir -p $dir`.

$flavor->write_file($fnametmpl, $template)

$fnametmpl will be replace with the parameters.

Generate file using Text::Xslate.

For more details, read the source Luke! Or please write docs...

$flavor->write_file_raw($fname, $content)

Write $content to the $fname.