line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Clustericious::HelloWorld; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
95945
|
use strict; |
|
4
|
|
|
|
|
18
|
|
|
4
|
|
|
|
|
124
|
|
4
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
124
|
|
5
|
4
|
|
|
4
|
|
267
|
use Mojo::Base 'Clustericious::App'; |
|
4
|
|
|
|
|
5588
|
|
|
4
|
|
|
|
|
40
|
|
6
|
4
|
|
|
4
|
|
1680
|
use Clustericious::RouteBuilder qw/Clustericious::HelloWorld/; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
28
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Clustericious hello world application |
9
|
|
|
|
|
|
|
our $VERSION = '1.27'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
get '/' => sub { shift->render(text => 'Hello, world') } => 'index'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
get '/modules' => sub { |
15
|
|
|
|
|
|
|
my %copy = %INC; |
16
|
|
|
|
|
|
|
shift->stash->{autodata} = \%copy; |
17
|
|
|
|
|
|
|
} => 'modules'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Clustericious::HelloWorld - Clustericious hello world application |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
version 1.27 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
% MOJO_APP=Clustericious::HelloWorld clustericious start |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
A very simple example Clustericious application intended for testing only. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SUPER CLASS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<Clustericious::App> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SEE ALSO |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L<Clustericious>, L<Mojo::HelloWorld> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Original author: Brian Duggan |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Current maintainer: Graham Ollis E<lt>plicease@cpan.orgE<gt> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Contributors: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Curt Tilmes |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Yanick Champoux |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is copyright (c) 2013 by NASA GSFC. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
68
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |