MMM - MMM Mirror Manager


mmm documentation  | view source Contained in the mmm distribution.

Index


NAME

Top

MMM - MMM Mirror Manager

METHODS

Top

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

Top

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Top


mmm documentation  | view source Contained in the mmm distribution.