File Coverage

blib/lib/Lim/Agent.pm
Criterion Covered Total %
statement 11 13 84.6
branch n/a
condition n/a
subroutine 5 7 71.4
pod 4 4 100.0
total 20 24 83.3


line stmt bran cond sub pod time code
1             package Lim::Agent;
2              
3 7     7   8201 use common::sense;
  7         20  
  7         63  
4              
5 7     7   424 use Lim ();
  7         18  
  7         169  
6              
7 7     7   46 use base qw(Lim::Component);
  7         16  
  7         5344  
8              
9             =encoding utf8
10              
11             =head1 NAME
12              
13             ...
14              
15             =head1 VERSION
16              
17             See L for version.
18              
19             =cut
20              
21             our $VERSION = $Lim::VERSION;
22              
23             =head1 SYNOPSIS
24              
25             ...
26              
27             =head1 SUBROUTINES/METHODS
28              
29             =head2 Name
30              
31             =cut
32              
33             sub Name {
34 2     2 1 21 'Agent';
35             }
36              
37             =head2 Description
38              
39             =cut
40              
41             sub Description {
42 0     0 1 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             sub Calls {
50             {
51 2     2 1 108 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             sub Commands {
128             {
129 0     0 1   version => 1,
130             plugins => 1
131             };
132             }
133              
134             =head1 AUTHOR
135              
136             Jerry Lundström, C<< >>
137              
138             =head1 BUGS
139              
140             Please report any bugs or feature requests to L.
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
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             1; # End of Lim::Agent