0e8c2f3896e3794cecdf3419348cf9dc13c08363
[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 before 'setup' => sub {
19     my $app = shift;
20     $app->config('Model::Git' => { repo_dir => $app->config('repo_dir') });
21 };
22
23 __PACKAGE__->config(
24         name => 'Gitalist',
25         default_view => 'Default',
26 );
27
28 # Start the application
29 __PACKAGE__->setup();
30
31 =head1 NAME
32
33 Gitalist - Catalyst based application
34
35 =head1 SYNOPSIS
36
37     script/gitalist_server.pl
38
39 =head1 DESCRIPTION
40
41 [enter your description here]
42
43 =head1 SEE ALSO
44
45 L<Gitalist::Controller::Root>, L<Catalyst>
46
47 =head1 AUTHORS AND COPYRIGHT
48
49   Catalyst application:
50     (C) 2009 Venda Ltd and Dan Brook <dbrook@venda.com>
51
52   Original gitweb.cgi from which this was derived:
53     (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org>
54     (C) 2005, Christian Gierke
55
56 =head1 LICENSE
57
58 FIXME - Is this going to be GPLv2 as per gitweb? If so this is broken..
59
60 This library is free software. You can redistribute it and/or modify
61 it under the same terms as Perl itself.
62
63 =cut
64
65 1;