Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Amon2::Setup::Flavor(3User Contributed Perl DocumentatiAmon2::Setup::Flavor(3)

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.

perl v5.32.1			  2021-02-28	       Amon2::Setup::Flavor(3)

NAME | DESCRIPTION | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Amon2::Setup::Flavor&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help