NAME
WE_Frontend::MainCommon - common methods for all WE_Frontend::Main* modules
SYNOPSIS
Do not use this module at its own!!! Just consult the methods.
DESCRIPTION
Note that all methods are loaded into the WE_Frontend::Main
namespace.
METHODS
- publish
-
Use the appropriate publish method according to the WEsiteinfo::Staging config member
livetransport
. May return a hash reference with following members:- Directories
-
List reference of published directories.
- Files
-
List reference of published files.
Options to publish:
- -verbose
-
Be verbose if set to true.
- -adddirectories
-
Reference to an array with additional directories to be published.
- -addfiles
-
Reference to an array with additional files to be published.
livetransport
may be any of the standard ones:rsync
,ftp
,ftp-md5sync
,rdist
, orrdist-ssh
. For custom methods, use either of the following:custom:method_name
-
Where method_name has to be a method in the
WE_Frontend::Main
namespace and already loaded in - A base class name basename
-
This will cause to load a module with the name
WE_Frontend::Publish::basename
(with uppercase basename) and call a methodpublish_basename
(lowercase). - A fully qualified method
-
This will case to require the module (based on the package name of the method) and call this method.
- searchindexer
-
XXX This method is not used XXX.
Use the appropriate search indexer method according to the WEsiteinfo::SearchEngine config member
searchindexer
.searchindexer
may take any of the following standard values:htdig
oroosearch
. - linkchecker
-
Checks recursively all links from
-url
(which may be a scalar or an array reference), or for all languages homepages. By default, the language homepages should be in$c->paths->rooturl . "/html/" . $lang . "/" . "home.html"
but the last part ("home.html") can be changed by the
-indexhtml
argument.
AUTHOR
Slaven Rezic - slaven@rezic.de