blib/lib/auto/share/dist/Clustericious/tmpl/1.08/app/lib/APPCLASS.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 32 CC 2 SCAR 11.0
CC
2
Cov
0%
sanity_check
6.0
startup
2.0
generate_config
2.0
CRAP 3.0
1 % my $class = shift;
2 package <%= $class %>;
3  
4 =head1 NAME
5  
6 <%= $class %> - Application Class
7  
8 =head1 SYNOPSIS
9  
10 <%= $class %>
11  
12 =head1 DESCRIPTION
13  
14 =cut
15  
16 use strict;
17 use warnings;
18  
19 use base 'Clustericious::App';
20 use <%= $class %>::Routes;
21  
22 our $VERSION = '0.01';
23  
24 sub startup
25 {
26 my($self) = @_;
27 $self->SUPER::startup(@_);
28
29 # called when the web application starts
30 }
31  
32 sub sanity_check
33 {
34 my($self) = @_;
35
36 return 0 unless $self->SUPER::sanity_check;
37
38 # test $self->config for missing or badly formed
39 # configuration items, and return 1 if it is okay
40 # and 0 if it is bad. print diagnostics to
41 # make it clear what is wrong.
42
43 return 1;
44 }
45  
46 sub generate_config
47 {
48 my($self) = @_;
49
50 # TODO
51 }
52  
53 1;