3 Parses rmt's configuration file
5 Author: Dominic Cleal <dcleal@redhat.com>
8 This lens is based on rmt(1)
11 This file is licensed under the LGPL v2+, like the rest of Augeas.
17 let sto_to_tab = store Rx.no_spaces
19 let debug = Build.key_value_line "DEBUG" Sep.equal ( store Rx.fspath )
20 let user = Build.key_value_line "USER" Sep.equal sto_to_tab
21 let access = Build.key_value_line "ACCESS" Sep.equal
22 ( [ label "name" . sto_to_tab ] . Sep.tab .
23 [ label "host" . sto_to_tab ] . Sep.tab .
24 [ label "path" . sto_to_tab ] )
26 let lns = ( debug | user | access | Util.comment | Util.empty )*
28 let filter = incl "/etc/default/rmt"
30 let xfm = transform lns filter