| 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; |