NAME

MMM - MMM Mirror Manager

METHODS

new( %options )

Create a new MMM object. %options can provide:

configfile

The configuration file to use (default is 'mmm.cfg')

mirror_dir

The location of locales lists (default is '.')

loghandle

A ref to an handle where to write message

verbosity

The verbosity level (default is 3)

statedir

Return the state directory

set_log_callback( $callback )

Set the callback where message are written

log( $level, $message, @args )

Log a message. $level is one of

LEVEL
FATAL
ERROR
WARNING
NOTICE
INFO
DEBUG

fmt_log($level, $message, @args)

Format a log message and return it

set_verbosity($verbosity)

Set the verbosity

hostname

Return the hostname setup in the configuration

hostinfo

Return the MMM::Host which identify the host where the process is running

configval($section, $var, $default)

Return a value from configuation

list_tasks

Return the list of setup task

get_tasks_by_name(@tasks_name)

Return a MMM::MirrorTask object for the each @tasks_name

run

Process all load rsync job

post_process

function called at the end of process

check_config

Check the config

AUTHOR

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Copyright (C) 2006 Olivier Thauvin

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.