GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Amon2::Setup::Flavor(3) User Contributed Perl Documentation Amon2::Setup::Flavor(3)

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

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.

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.
2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.