Lim/Agent.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 4 / 4 totaltotal 84.6% 22 / 26 CC 1 SCAR 2.5
CC
1
Cov
87%
Description
2.0
Commands
2.0
BEGIN
1.0
CRAP 1.3
« Lim/RPC/Protocol.pm ↑ Summary Lim/RPC/Transport/Client/HTTPS.pm »
1 package Lim::Agent;
2  
3 10 ▶use common::sense;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 10 ▶use Lim ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 10 ▶use base qw(Lim::Component);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 =encoding utf8
10  
11 =head1 NAME
12  
13 ...
14  
15 =head1 VERSION
16  
17 See L<Lim> for version.
18  
19 =cut
20  
21 10 our $VERSION = $Lim::VERSION;
22  
23 =head1 SYNOPSIS
24  
25 ...
26  
27 =head1 SUBROUTINES/METHODS
28  
29 =head2 Name
30  
31 =cut
32  
33 4 ▶sub Name {
Subroutine Name: called CC=1 SCAR=0.0
Pod documented
34 4 'Agent';
35 }
36  
37 =head2 Description
38  
39 =cut
40  
41 0 ▶sub Description {
Subroutine Description: not called CC=1 SCAR=6.9
Pod documented
42 0 'This is the core plugin of the Lim Agent Daemon, it manage other plugins and provides system information.';
43 }
44  
45 =head2 Calls
46  
47 =cut
48  
49 6 ▶sub Calls {
Subroutine Calls: called CC=1 SCAR=0.0
Pod documented
50 {
51 6 ReadVersion => {
52 out => {
53 version => 'string'
54 }
55 },
56 ReadPlugins => {
57 out => {
58 plugin => {
59 name => 'string',
60 description => 'string optional',
61 module => 'string',
62 version => 'string',
63 loaded => 'bool'
64 }
65 }
66 },
67 ReadPlugin => {
68 uri_map => [
69 'plugin.name=\w+',
70 'plugin.name=\w+/version => ReadPluginVersion',
71 'plugin.name=\w+/loaded => ReadPluginLoaded'
72 ],
73 in => {
74 plugin => {
75 name => 'string'
76 }
77 },
78 out => {
79 plugin => {
80 name => 'string',
81 description => 'string optional',
82 module => 'string',
83 version => 'string',
84 loaded => 'bool'
85 }
86 }
87 },
88 ReadPluginVersion => {
89 uri_map => [
90 'plugin.name=\w+'
91 ],
92 in => {
93 plugin => {
94 name => 'string'
95 }
96 },
97 out => {
98 plugin => {
99 name => 'string',
100 version => 'string'
101 }
102 }
103 },
104 ReadPluginLoaded => {
105 uri_map => [
106 'plugin.name=\w+'
107 ],
108 in => {
109 plugin => {
110 name => 'string'
111 }
112 },
113 out => {
114 plugin => {
115 name => 'string',
116 loaded => 'bool'
117 }
118 }
119 }
120 };
121 }
122  
123 =head2 Commands
124  
125 =cut
126  
127 0 ▶sub Commands {
Subroutine Commands: not called CC=1 SCAR=6.9
Pod documented
128 {
129 0 version => 1,
130 plugins => 1
131 };
132 }
133  
134 =head1 AUTHOR
135  
136 Jerry Lundström, C<< <lundstrom.jerry at gmail.com> >>
137  
138 =head1 BUGS
139  
140 Please report any bugs or feature requests to L<https://github.com/jelu/lim/issues>.
141  
142 =head1 SUPPORT
143  
144 You can find documentation for this module with the perldoc command.
145  
146 perldoc Lim::Agent
147  
148 You can also look for information at:
149  
150 =over 4
151  
152 =item * Lim issue tracker (report bugs here)
153  
154 L<https://github.com/jelu/lim/issues>
155  
156 =back
157  
158 =head1 ACKNOWLEDGEMENTS
159  
160 =head1 LICENSE AND COPYRIGHT
161  
162 Copyright 2012-2013 Jerry Lundström.
163  
164 This program is free software; you can redistribute it and/or modify it
165 under the terms of either: the GNU General Public License as published
166 by the Free Software Foundation; or the Artistic License.
167  
168 See http://dev.perl.org/licenses/ for more information.
169  
170  
171 =cut
172  
173 10 1; # End of Lim::Agent
« Lim/RPC/Protocol.pm ↑ Summary Lim/RPC/Transport/Client/HTTPS.pm »