line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::ServerInfo; |
2
|
3
|
|
|
3
|
|
14851
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
3
|
|
|
|
|
12687
|
|
|
3
|
|
|
|
|
13
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.008'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub register { |
7
|
1
|
|
|
1
|
1
|
25
|
my ($self, $app) = @_; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
|
|
2
|
push @{$app->renderer->classes}, __PACKAGE__; |
|
1
|
|
|
|
|
4
|
|
10
|
1
|
|
|
|
|
14
|
push @{$app->static->classes}, __PACKAGE__; |
|
1
|
|
|
|
|
5
|
|
11
|
1
|
|
|
1
|
|
17
|
$app->routes->any('/serverinfo' => sub { shift->render } ); |
|
1
|
|
|
|
|
10377
|
|
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Mojolicious::Plugin::ServerInfo - display Server and Perl environment data |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=for html |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$app->plugin('Mojolicious::Plugin::ServerInfo'); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
L is a Mojolicious-Plugin. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
It creates a route |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
/serverinfo |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
where detailed info is dispalyed in formatted HTML. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=over |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=back |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SOURCE REPOSITORY |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
L |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Helmut Wollmersdorfer, Ehelmut.wollmersdorfer@gmail.comE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Copyright (C) 2013-2015 by Helmut Wollmersdorfer |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
66
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__DATA__ |