Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / radicale.aug
1 (* Radicale module for Augeas
2  Based on Puppet lens.
3
4  Manage config file for http://radicale.org/
5  /etc/radicale/config is a standard INI File.
6 *)
7
8
9 module Radicale =
10   autoload xfm
11
12 (************************************************************************
13  * INI File settings
14  *
15  * /etc/radicale/config only supports "#" as commentary and "=" as separator
16  *************************************************************************)
17 let comment    = IniFile.comment "#" "#"
18 let sep        = IniFile.sep "=" "="
19
20
21 (************************************************************************
22  *                        ENTRY
23  * /etc/radicale/config uses standard INI File entries
24  *************************************************************************)
25 let entry   = IniFile.indented_entry IniFile.entry_re sep comment
26
27
28 (************************************************************************
29  *                        RECORD
30  * /etc/radicale/config uses standard INI File records
31  *************************************************************************)
32 let title   = IniFile.indented_title IniFile.record_re
33 let record  = IniFile.record title entry
34
35
36 (************************************************************************
37  *                        LENS & FILTER
38  * /etc/radicale/config uses standard INI File records
39  *************************************************************************)
40 let lns     = IniFile.lns record comment
41
42 let filter = (incl "/etc/radicale/config")
43
44 let xfm = transform lns filter