1Config::Model::AnnotatiUosne(r3)Contributed Perl DocumenCtoantfiiogn::Model::Annotation(3)
2
3
4
6 Config::Model::Annotation - Read and write configuration annotations
7
9 version 1.205
10
12 my $arw = Config::Model::Annotation
13 -> new (
14 config_class_name => $self->{root_class_name},
15 instance => $self ,
16 ) ;
17
18 $arw->load;
19
20 $arw->save;
21
23 This module provides an object that read and write annotations (a bit
24 like comments) to and from a configuration tree.
25
26 Depending on the effective id of the process, the annotation will be
27 saved in:
28
29 · "/var/lib/config-model/<model_name>-note.yml" for root (EUID == 0)
30
31 · "~/.config-model/<model_name>-note.yml" for normal user (EUID > 0)
32
34 Quite standard. The constructor is passed a Config::Model::Instance
35 object.
36
38 save()
39 Save annotations in a file (See DESCRIPTION)
40
41 load()
42 Loads annotations from a file (See DESCRIPTION)
43
45 Dominique Dumont, (ddumont at cpan dot org)
46
48 Config::Model, Config::Model::Node, Config::Model::Loader,
49 Config::Model::Searcher, Config::Model::Value,
50
51
52
53perl v5.12.1 2010-08-18 Config::Model::Annotation(3)