Libconf::Templates::Samba - Libconf low level template to handle Samba smb.conf like style conf files
Libconf::Templates::Samba is a template that handles samba smb.conf config files.
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();
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.
See Libconf::Templates for the general list of methods you can call on this template.
There is no specific methods