File Coverage

blib/lib/XAS/Apps/Test/Service.pm
Criterion Covered Total %
statement 6 13 46.1
branch n/a
condition n/a
subroutine 2 3 66.6
pod 1 1 100.0
total 9 17 52.9


line stmt bran cond sub pod time code
1             package XAS::Apps::Test::Service;
2              
3 1     1   2008 use XAS::Lib::POE::Service;
  1         2  
  1         35  
4              
5             use XAS::Class
6 1         9 version => '0.01',
7             base => 'XAS::Lib::App::Service',
8             vars => {
9             SERVICE_NAME => 'XAS_POE_TEST',
10             SERVICE_DISPLAY_NAME => 'XAS POE Test',
11             SERVICE_DESCRIPTION => 'This is a test service',
12             }
13 1     1   4 ;
  1         2  
14              
15             # ----------------------------------------------------------------------
16             # Public Methods
17             # ----------------------------------------------------------------------
18              
19             sub main {
20 0     0 1   my $self = shift;
21              
22 0           my $service;
23              
24 0           $self->service->register('testing');
25              
26 0           $self->log->info_msg('startup');
27              
28 0           $service = XAS::Lib::Service->new(-alias => 'testing');
29 0           $service->run();
30              
31 0           $self->log->info_msg('shutdown');
32              
33             }
34              
35             # ----------------------------------------------------------------------
36             # Private Methods
37             # ----------------------------------------------------------------------
38              
39             1;
40              
41             __END__
42              
43             =head1 NAME
44              
45             XAS::Apps::Test::Service - A template module for services within the XAS environment
46              
47             =head1 SYNOPSIS
48              
49             use XAS::Apps::Test::Service;
50              
51             my $app = XAS::Apps::Test::Service->new();
52              
53             exit $app->run();
54              
55             =head1 DESCRIPTION
56              
57             This module is a template on a way to write procedures that are services
58             within the XAS enviornment.
59              
60             =head1 CONFIGURATION
61              
62             =head1 SEE ALSO
63              
64             L<XAS|XAS>
65              
66             =head1 AUTHOR
67              
68             Kevin L. Esteb, E<lt>kevin@kesteb.usE<gt>
69              
70             =head1 COPYRIGHT AND LICENSE
71              
72             Copyright (C) 2014 Kevin L. Esteb
73              
74             This is free software; you can redistribute it and/or modify it under
75             the terms of the Artistic License 2.0. For details, see the full text
76             of the license at http://www.perlfoundation.org/artistic_license_2_0.
77              
78             =cut