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


Manual Reference Pages  -  AMON2::SETUP::FLAVOR (3)

.ds Aq ’

NAME

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

CONTENTS

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 AMON2::SETUP::FLAVOR (3) 2016-04-03

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