File: Model.pl

package info (click to toggle)
libconfig-model-itself-perl 2.025-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: perl: 3,507; makefile: 12
file content (34 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use strict;
use warnings;

return [
    [
        name => "Itself::Model",

        element => [
            class => {
                type => 'hash',
                index_type => 'string' ,
                ordered => 1,
                cargo => {
                    type => 'node',
                    config_class_name => 'Itself::Class' ,
                },
            },
            application => {
                type => 'hash',
                index_type => 'string',
                level      => 'important',
                cargo => {
                    type => 'node',
                    config_class_name => 'Itself::Application',
                },
            },
        ],

        description => [
            class  => 'A configuration model is made of several configuration classes.',
            application => 'defines the application name provided by user to cme. E.g. cme edit <application>'
        ],
    ],
];