Commit | Line | Data |
89de6a33 |
1 | package Gitalist; |
42fe5d11 |
2 | use Moose; |
3 | use namespace::autoclean; |
89de6a33 |
4 | |
5 | use Catalyst::Runtime 5.80; |
6 | |
42fe5d11 |
7 | extends 'Catalyst'; |
89de6a33 |
8 | |
89de6a33 |
9 | use Catalyst qw/-Debug |
10 | ConfigLoader |
d5cc37a4 |
11 | Static::Simple |
12 | StackTrace/; |
89de6a33 |
13 | our $VERSION = '0.01'; |
14 | |
4666d5c7 |
15 | # Bring in the libified gitweb.cgi. |
16 | use gitweb; |
17 | |
28e35997 |
18 | # Load the testing config if we're invoked under test |
19 | if ($ENV{APP_TEST} ) { |
20 | __PACKAGE__->config( 'Plugin::ConfigLoader' => |
21 | { file => __PACKAGE__->path_to |
22 | ('t/lib/gitalist_testing.conf')} |
23 | ); |
24 | } |
d3feefcf |
25 | __PACKAGE__->config( |
26 | name => 'Gitalist', |
27 | default_view => 'Default', |
28 | ); |
89de6a33 |
29 | |
30 | # Start the application |
31 | __PACKAGE__->setup(); |
32 | |
89de6a33 |
33 | =head1 NAME |
34 | |
35 | Gitalist - Catalyst based application |
36 | |
37 | =head1 SYNOPSIS |
38 | |
39 | script/gitalist_server.pl |
40 | |
41 | =head1 DESCRIPTION |
42 | |
43 | [enter your description here] |
44 | |
45 | =head1 SEE ALSO |
46 | |
47 | L<Gitalist::Controller::Root>, L<Catalyst> |
48 | |
42fe5d11 |
49 | =head1 AUTHORS AND COPYRIGHT |
89de6a33 |
50 | |
42fe5d11 |
51 | Catalyst application: |
52 | (C) 2009 Venda Ltd and Dan Brook <dbrook@venda.com> |
53 | |
54 | Original gitweb.cgi from which this was derived: |
55 | (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org> |
56 | (C) 2005, Christian Gierke |
89de6a33 |
57 | |
58 | =head1 LICENSE |
59 | |
42fe5d11 |
60 | FIXME - Is this going to be GPLv2 as per gitweb? If so this is broken.. |
61 | |
89de6a33 |
62 | This library is free software. You can redistribute it and/or modify |
63 | it under the same terms as Perl itself. |
64 | |
65 | =cut |
66 | |
67 | 1; |