Bundle a git repository for testing, add the required glue to use it.
[catagits/Gitalist.git] / lib / Gitalist.pm
1 package Gitalist;
2 use Moose;
3 use namespace::autoclean;
4
5 use Catalyst::Runtime 5.80;
6
7 extends 'Catalyst';
8
9 use Catalyst qw/-Debug
10                 ConfigLoader
11                 Static::Simple
12                                 StackTrace/;
13 our $VERSION = '0.01';
14
15 # Bring in the libified gitweb.cgi.
16 use gitweb;
17
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 }
25 __PACKAGE__->config(
26         name => 'Gitalist',
27         default_view => 'Default',
28 );
29
30 # Start the application
31 __PACKAGE__->setup();
32
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
49 =head1 AUTHORS AND COPYRIGHT
50
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
57
58 =head1 LICENSE
59
60 FIXME - Is this going to be GPLv2 as per gitweb? If so this is broken..
61
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;