App::Rsnapshot::Config - parse the config file; OO interface to read it
my $config = App::Rsnapshot::Config->new('/etc/rsnapshot.conf'); ... my $rsync = $config->externalprograms()->rsync(); my $rsyncbinary = $rsync->binary(); my $rsyncargs = [ $rsync->shortargs()->values(), $srync->longargs()->values() ];
Parses an XML config file, and provides a nice objecty interface to get at information in it. Note that it does only minimal verification of the XML schema or anything like that.
Constructor, takes a filename (with path) and returns an App::Rsnapshot::Config::Node object representing the root of the XML document tree.
This uses App::Rsnapshot::XML::Tiny, so is subject to all of its bugs and foibles. Bug reports are most welcome.
Copyright 2009 David Cantrell <firstname.lastname@example.org>
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
This module is also free-as-in-mason software.