blib/lib/Mojolicious/Plugin/ServerInfo.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
register
1.0
__ANON__
1.0
CRAP 1.0
↑ Summary
1 package Mojolicious::Plugin::ServerInfo;
2 3 ▶use Mojo::Base 'Mojolicious::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 3 our $VERSION = '0.010';
5  
6 1 ▶sub register {
Subroutine register: called CC=1 SCAR=0.0
Pod documented
7 1 my ($self, $app) = @_;
8  
9 1 push @{$app->renderer->classes}, __PACKAGE__;
10 1 push @{$app->static->classes}, __PACKAGE__;
11 1 ▶ $app->routes->any('/serverinfo' => sub { shift->render } );
Subroutine __ANON__: called CC=1 SCAR=0.0
12 }
13  
14 3 1;
15  
16 =head1 NAME
17  
18 Mojolicious::Plugin::ServerInfo - display Server and Perl environment data
19  
20 =begin html
21  
22 <a href="https://travis-ci.org/wollmers/Mojolicious-Plugin-ServerInfo"><img src="https://travis-ci.org/wollmers/Mojolicious-Plugin-ServerInfo.svg?branch=master" alt="Mojolicious-Plugin-ServerInfo"></a>
23 <a href='https://coveralls.io/r/wollmers/Mojolicious-Plugin-ServerInfo'><img src='https://coveralls.io/repos/wollmers/Mojolicious-Plugin-ServerInfo/badge.svg' alt='Coverage Status' /></a>
24 <a href='http://cpants.cpanauthors.org/dist/Mojolicious-Plugin-ServerInfo'><img src='http://cpants.cpanauthors.org/dist/Mojolicious-Plugin-ServerInfo.png' alt='Kwalitee Score' /></a>
25 <a href="http://badge.fury.io/pl/Mojolicious-Plugin-ServerInfo"><img src="https://badge.fury.io/pl/Mojolicious-Plugin-ServerInfo.svg" alt="CPAN version" height="18"></a>
26  
27 =end html
28  
29 =head1 SYNOPSIS
30  
31 $app->plugin('Mojolicious::Plugin::ServerInfo');
32  
33  
34 =head1 DESCRIPTION
35  
36 L<Mojolicious::Plugin::ServerInfo> is a Mojolicious-Plugin.
37  
38 It creates a route
39  
40 /serverinfo
41  
42 where detailed info is displayed in formatted HTML.
43  
44 =head2 METHODS
45  
46 =over 4
47  
48  
49 =item register
50  
51 Do not use directly. It is called by Mojolicious.
52  
53 =back
54  
55 =head1 SEE ALSO
56  
57 =over
58  
59 =item *
60  
61 L<Mojolicious>
62  
63 =back
64  
65 =head1 SOURCE REPOSITORY
66  
67 L<http://github.com/wollmers/Mojolicious-Plugin-ServerInfo>
68  
69 =head1 AUTHOR
70  
71 Helmut Wollmersdorfer, E<lt>helmut.wollmersdorfer@gmail.comE<gt>
72  
73 =begin html
74  
75 <a href='http://cpants.cpanauthors.org/author/wollmers'><img src='http://cpants.cpanauthors.org/author/wollmers.png' alt='Kwalitee Score' /></a>
76  
77 =end html
78  
79 =head1 COPYRIGHT AND LICENSE
80  
81 Copyright (C) 2013-2015 by Helmut Wollmersdorfer
82  
83 This library is free software; you can redistribute it and/or modify
84 it under the same terms as Perl itself.
85  
86 =cut
87  
88  
89 __DATA__
↑ Summary