| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package App::Base; |
|
2
|
1
|
|
|
1
|
|
13185
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
23
|
|
|
3
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
42
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = "0.06"; |
|
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
App::Base - modules implementing common methods for applications |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
This document describes App::Base version 0.05 |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use App::Base; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
This distribution provides modules that implement common methods for writing scripts and daemons. |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=over 4 |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=item L<App::Base::Script> |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Role implementing basic functionality for scripts |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=item L<App::Base::Script::OnlyOne> |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Role to allow only one running instance of the script |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item L<App::Base::Daemon> |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Role implementing basic functionality for daemons |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item L<App::Base::Daemon::Supervisor> |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Role implementing methods to support supervision and zero downtime reloading for daemons. |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=back |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 CONTRIBUTORS |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The following people contributed to this module: |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=over 4 |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item Calum Halcrow |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item Chris Travers |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item Fayland Lam |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item Jean-Yves Sireau |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item Kaveh Mousavi Zamani |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item Matt Miller |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item Nick Marden |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item Pavel Shaydo |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item Tee Shuwn Yuan |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Copyright (C) 2010-2014 Binary.com |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
|
80
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
|
81
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |