models/Itself/ConfigReadWrite.d/augeas-backend.pl

filter: Statementstmt 100% 1 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 1 / 1 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Backend/Augeas.pm ↑ Summary
1 [
2 [
3 1 name => "Itself::ConfigReadWrite",
4  
5 'element' => [
6  
7 'backend' => {
8 choice => [qw/Augeas/],
9 help => {
10 augeas => "Experimental backend with RedHat's Augeas library. See http://augeas.net for details",
11 }
12 },
13  
14 'save' => {
15 type => 'leaf',
16 value_type => 'enum',
17 choice => [qw/backup newfile/],
18 level => 'hidden',
19 description =>
20 'Specify how to save the configuration file. Either create a newfile (with extension .augnew, and do not overwrite the original file) or move the original file into a backup file (.augsave extension). Configuration files are overwritten by default',
21 warp => {
22 follow => '- backend',
23 rules => [ Augeas => { level => 'normal', } ],
24 }
25 },
26  
27 'set_in' => {
28 type => 'leaf',
29 value_type => 'reference',
30 refer_to => '- - element',
31 level => 'hidden',
32 description =>
33 'Sometimes, the structure of a file loaded by Augeas starts directly with a list of items. For instance, /etc/hosts structure starts with a list of lines that specify hosts and IP addresses. This parameter specifies an element name in Config::Model root class that will hold the configuration data retrieved by Augeas',
34 warp => {
35 follow => '- backend',
36 rules => [ Augeas => { level => 'normal', } ],
37 }
38 },
39 'sequential_lens' => {
40 type => 'list',
41 level => 'hidden',
42 cargo => {
43 type => 'leaf',
44 value_type => 'uniline',
45 },
46 warp => {
47 follow => { b => '- backend' },
48 rules => [ '$b eq "Augeas"' => { level => 'normal', } ],
49 },
50 description =>
51 'List of hash or list Augeas lenses where value are stored in sequential Augeas nodes. See Config::Model::Backend::Augeas for details.',
52 },
53 ],
54  
55 ],
56  
57 ];
« Backend/Augeas.pm ↑ Summary