NAME

Libconf::Templates::Lilo

DESCRIPTION

Libconf::Templates::Lilo - Libconf low level template to handle lilo configuration files

SYNOPSIS

 my $template = new Libconf::Templates::Lilo({ filename => '/etc/lilo.conf' });
 $template->edit_atom(-1, {
                          key => 'label',
                          value => 'linux',
                          sections => [ {name => '/boot/bzImage'} ],
                         },
                          {
                          key => 'label',
                          value => 'linux_foo',
                          sections => [ {name => '/boot/bzImage_foo'} ],
                         });
 ...
 (see L<Libconf::Templates> for transformation methods on $template)
 ...
$template->write_conf();

CONSTRUCTOR

new($options)

creates the template

 my $template = new Libconf::Templates::Lilo({ filename => '/etc/lilo.conf' });

options

filename [type : STRING, default : ''] : the filename of the config file you want to work on. Can be read and written lately by using set_filename and get_filename.

Others options taken from Libconf::Templates::Generic::KeyValue and Libconf::Templates::Generic::Value can be also set here.

GENERAL METHODS

See Libconf::Templates for the general list of methods you can call on this template.

SPECIFIC METHODS

There is no specific methods