Rsync::Config::Module

Rsync::Config::Module is a module entry from a rsync configuration file.
Download

Rsync::Config::Module Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Manuel SUBREDU
  • Publisher web site:
  • http://search.cpan.org/~diablo/Rsync-Config-0.3.1/lib/Rsync/Config/Parser.pm

Rsync::Config::Module Tags


Rsync::Config::Module Description

Rsync::Config::Module is a module entry from a rsync configuration file. Rsync::Config::Module is a module entry from a rsync configuration file.Rsync::Config::Module is used to create a module who can be later used in generating a rsync configuration file. Each module is made by atoms (Rsync::Config::Atom).SYNOPSIS use Rsync::Config::Module; sub main { my $mod_cpan; $mod_cpan = new Rsync::Config::Module(name => 'cpan'); $mod_cpan->add_atom(name => 'path', value => '/var/ftp/pub/mirrors/ftp.cpan.org/'); $mod_cpan->add_atom(name => 'comment', value => 'CPAN mirror'); }SUBROUTINES/METHODSnew(%opt)The class contructor. %opt must contain at least a key named name with the name of the module.add_blank()Adds a blank atom to this module. Returns the object. This method internally calles Rsync::Config::Atom constructor.add_comment($comment)Adds a comment atom to this module. Returns the object. This method internally calles Rsync::Config::Atom constructor with $comment parameter. Please read Rsync::Config::Atom contructor documentation to see if any exceptions are throwned.add_atom($name, $value)Adds a new atom to this module. This method internally calles Rsync::Config::Atom constructor with $name and $value parameters. Please read Rsync::Config::Atom contructor documentation to see if any exceptions are throwned.add_atom_obj($atom_obj)Adds a previsiously created atom object to the list of current atoms. If $atom_obj is not a instance of Rsync::Config::Atom REX::Param::Invalid exception is throwned.atoms_no()Returns the number of current atoms.atoms()In scalar context returns a array reference to the list of current atoms. In array content returns a array of current atoms.to_string()Returns the string representation of the current module. If indent is true, a best of effort is made to indent the module.indent_step my $current_indent_step = $module->indent_step; $module->indent_step(2);Both accessor and mutator, indent_step can be used to get the current indentation level step or to change it.nameBoth accessor and mutator, name can be used to get the name of the module or change it. Requirements: · Perl · Rsync::Config::Module uses the following modules: · English · Scalar::Util · CLASS


Rsync::Config::Module Related Software