NAME

Libconf::Templates::Samba - Libconf low level template to handle Samba smb.conf like style conf files

DESCRIPTION

Libconf::Templates::Samba is a template that handles samba smb.conf config files.

SYNOPSIS

 my $template = new Libconf::Templates::Samba({ filename => '/etc/samba/smb.conf' });
 $template->edit_atom(-1, { key => 'workgroup' },
                          { 
                            value => 'TEST',
                            sections => [ {name => 'global'} ],
                          } );
 ...
 (see L<Libconf::Templates> for transformation methods on $template)
 ...
$template->write_conf();

CONSTRUCTOR

new($options)

creates the template

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

arguments

$options [type : HASH_REF] specifies the options to create the new template instance.

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.

GENERAL METHODS

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

SPECIFIC METHODS

There is no specific methods