Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ropkg::simba::excludes(3pm) [debian man page]

RoPkg::Simba::Excludes(3pm)				User Contributed Perl Documentation			       RoPkg::Simba::Excludes(3pm)

NAME
RoPkg::Simba::Excludes VERSION
0.2.2 DESCRIPTION
RoPkg::Simba::Excludes is a class used to count and get the excludes from the database. SYNOPSIS
!#/usr/bin/perl use RoPkg::DB; use RoPkg::Simba::Excludes; sub main { my $dbp = new RoPkg::DB(); $dbp->Add('dbi:mysql:database=mysql;host=localhost', 'root', '', 'local'); my $m = new RoPkg::Simba::Excludes(dbo => $dbp, dbo_method => 'db_local'); print $m->Count,' excludes found in database',$/; } main(); SUBROUTINES
/METHODS new() The class constructor. At this moment, it just calls RoPkg::DBObject->new() . Please read the RoPkg::DBObject manual page for more information about the new() parameters. Count($fields) Returns the number of excludes from database. The $fields parameter contains a list of WHERE clauses. For more details of $fields see SQL::Abstract. Get($fields, $orderby) Returns a array of RoPkg::Simba::exclude list objects. The excludes are read from the database. The $fields parameter contains a list of WHERE clauses. For more details of $fields see SQL::Abstract. $orderby is a reference to a array holding the fields specification used for sorting the data. DIAGNOSTICS
Unpack the source, and use 'make test' command CONFIGURATION AND ENVIRONMENT
This module does not use any configuration files or environment variables. DEPENDENCIES
RoPkg::DBCollection and RoPkg::Exceptions INCOMPATIBILITIES
None known to the author BUGS AND LIMITATIONS
None known to the author PERL CRITIC
This module is perl critic level 2 compliant SEE ALSO
RoPkg::Simba RoPkg::Simba::Exclude SQL::Abstract AUTHOR
Subredu Manuel <diablo@iasi.roedu.net> LICENSE AND COPYRIGHT
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.14.2 2006-07-04 RoPkg::Simba::Excludes(3pm)

Check Out this Related Man Page

RoPkg::Simba(3pm)					User Contributed Perl Documentation					 RoPkg::Simba(3pm)

NAME
RoPkg::Simba - the main class of simba VERSION
0.8.4 SYNOPSIS
!#/usr/bin/perl use RoPkg::DB; use RoPkg::Simba; sub main { my $simba = new RoPkg::Simba(cfgFile => '/etc/simba.cfg'); $simba->Run({ Name => 'debian'}); } main(); DESCRIPTION
This class encapsulates all the necesary code required to run Simba. SUBROUTINES
/METHODS new() new() expects a hash ref as a parameter. The hash can contain (for the moment) only the cfgFile (the configuration file). All other hash keys are ignored. SimbaURL Returns the url with simba website VERSION Returns a string with simba version MirrorsNo($fields) returns the number of the mirrors from the database. The mirrors can be filtered using the $fields parameter (as documented in SQL::Abstract - where) Mirrors($fields) returns a array of RoPkg::Simba::Mirror initialized objects. The mirrors can be filtered using the $fields parameter (as documented in SQL::Abstract - where) CommandsNo($fields) returns the number of commands from the database. The commands can be filtered using the $fields parameter (as documented in SQL::Abstract - where) Commands returns a array of RoPkg::Simba::Command initialized objects. The commands can be filtered using the $fields parameter (as documented in SQL::Abstract - where) ExcludeNo returns the number of excludes from the database. The excludes can be filtered using the $fields parameter (as documented in SQL::Abstract - where) Excludes returns a array of RoPkg::Simba::Excludes initialized objects. The excludes can be filtered using the $fields parameter (as documented in SQL::Abstract - where) LoadMirror($fields) load a mirror (and the related objects: command and exclude list) from the database and return a list of 3 objects: the mirror object (RoPkg::Simba::Mirror) the command object (RoPkg::Simba::Command) the excludes object (RoPkg::Simba::Excludes) Ex: my ($mirror, $command, $excludes); ($mirror, $command, $excludes) = $simba->LoadMirror({ Name => 'debian'}); The mirrors can be filtered using the $fields parameter (as documented in SQL::Abstract - where). This method also checks if all necesary values are defined and well formed; for example checks if the command file name really exists. Run($fields) The most used method by simba. This method loads the mirror from the database, the command and the exclude list, builds the command line (with respect to username and password if necesary), signals mirror in progress, executes the command, parses the sync raw log and updates the database. Also, the afterSync handler callback is registered to this method. The mirrors can be filtered using the $fields parameter (as documented in SQL::Abstract - where). RunCallbacks($cbName, @mirrors) call the plugin methods for $cbName callback name. CheckDB() Checks if database has at least one mirror and one command defined. dbh() returns the database handler used by Simba dbo() returns the instance of RoPkg::DB object, used by Simba dbo_method() returns the method used by Simba's dbo() object to access the mirrors database. SEE ALSO
RoPkg::Simba::Mirror RoPkg::Simba::Command RoPkg::Simba::Exclude RoPkg::Simba::Mirrors RoPkg::Simba::Commands RoPkg::Simba::Excludes PERL CRITIC
This module is perl critic level 2 compliant (with one exception) DIAGNOSTICS
This module has his own tests in the t directory. To run the tests, unpack the source and use 'make test' command. CONFIGURATION AND ENVIRONMENT
This class use a configuration file. No environment variables are used. The configuration file format and the complete list of options (with detailed explanations) can be found on the community website: http://simba.packages.ro DEPENDENCIES
INCOMPATIBILITIES
Please check the Makefile.PL for a detalied list of dependencies and their versions. BUGS AND LIMITATIONS
No bugs known. For now, Simba can work only with rsync. AUTHOR
Subredu Manuel <diablo@iasi.roedu.net> LICENSE AND COPYRIGHT
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.14.2 2006-09-26 RoPkg::Simba(3pm)
Man Page