Bundle a git repository for testing, add the required glue to use it.
[catagits/Gitalist.git] / lib / Gitalist.pm
CommitLineData
89de6a33 1package Gitalist;
42fe5d11 2use Moose;
3use namespace::autoclean;
89de6a33 4
5use Catalyst::Runtime 5.80;
6
42fe5d11 7extends 'Catalyst';
89de6a33 8
89de6a33 9use Catalyst qw/-Debug
10 ConfigLoader
d5cc37a4 11 Static::Simple
12 StackTrace/;
89de6a33 13our $VERSION = '0.01';
14
4666d5c7 15# Bring in the libified gitweb.cgi.
16use gitweb;
17
28e35997 18# Load the testing config if we're invoked under test
19if ($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
35Gitalist - 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
47L<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 60FIXME - Is this going to be GPLv2 as per gitweb? If so this is broken..
61
89de6a33 62This library is free software. You can redistribute it and/or modify
63it under the same terms as Perl itself.
64
65=cut
66
671;