models/Systemd/Timer.pl

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« models/Systemd/StandAlone/Service.pl ↑ Summary
1 #
2 # This file is part of Config-Model-Systemd
3 #
4 # This software is Copyright (c) 2008-2026 by Dominique Dumont.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 return [
16 {
17 1 'accept' => [
18 '.*',
19 {
20 'type' => 'leaf',
21 'value_type' => 'uniline',
22 'warn' => 'Unexpected systemd parameter. Please contact cme author to update systemd model.'
23 }
24 ],
25 'description' => {
26 'disable' => 'When true, cme will disable a configuration file supplied by the vendor by placing place a symlink to /dev/null with the same filename as the vendor configuration file. See L<systemd-system.conf> for details.'
27 },
28 'element' => [
29 'disable',
30 {
31 'type' => 'leaf',
32 'upstream_default' => '0',
33 'value_type' => 'boolean'
34 },
35 'Timer',
36 {
37 'config_class_name' => 'Systemd::Section::Timer',
38 'type' => 'warped_node'
39 },
40 'Unit',
41 {
42 'config_class_name' => 'Systemd::Section::TimerUnit',
43 'type' => 'warped_node'
44 },
45 'Install',
46 {
47 'config_class_name' => 'Systemd::Section::Install',
48 'type' => 'warped_node'
49 }
50 ],
51 'generated_by' => 'parse-man.pl from systemd doc',
52 'name' => 'Systemd::Timer',
53 'rw_config' => {
54 'auto_create' => '1',
55 'auto_delete' => '1',
56 'backend' => 'Systemd::Unit',
57 'file' => '&index.timer'
58 },
59 'summary' => {
60 'disable' => 'disable configuration file supplied by the vendor'
61 },
62 'warp' => {
63 'Install' => {
64 'follow' => {
65 'disable' => '- disable'
66 },
67 'rules' => [
68 {
69 'apply' => {
70 'level' => 'hidden'
71 },
72 'when' => '$disable'
73 }
74 ]
75 },
76 'Timer' => '*Install',
77 'Unit' => '*Install'
78 }
79 }
80 ]
81 ;
« models/Systemd/StandAlone/Service.pl ↑ Summary