line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::ServerInfo; |
2
|
3
|
|
|
3
|
|
19719
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
3
|
|
|
|
|
18012
|
|
|
3
|
|
|
|
|
23
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.009'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub register { |
7
|
1
|
|
|
1
|
1
|
42
|
my ($self, $app) = @_; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
|
|
2
|
push @{$app->renderer->classes}, __PACKAGE__; |
|
1
|
|
|
|
|
4
|
|
10
|
1
|
|
|
|
|
20
|
push @{$app->static->classes}, __PACKAGE__; |
|
1
|
|
|
|
|
6
|
|
11
|
1
|
|
|
1
|
|
21
|
$app->routes->any('/serverinfo' => sub { shift->render } ); |
|
1
|
|
|
|
|
12971
|
|
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
|
|
|
|
|
|
|
=for html |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Copyright (C) 2013-2015 by Helmut Wollmersdorfer |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
70
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
__DATA__ |