Remove gitweb.cgi, this is no longer needed
[catagits/Gitalist.git] / lib / Gitalist / Model / GitRepos.pm
CommitLineData
21336a02 1package Gitalist::Model::GitRepos;
2
3use Moose;
4use Gitalist::Git::Repo;
bddfb71e 5use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
21336a02 6use namespace::autoclean;
7
bddfb71e 8extends 'Catalyst::Model';
21336a02 9
bddfb71e 10with 'Catalyst::Component::InstancePerContext';
11
12has repo_dir => (
13 isa => NonEmptySimpleStr,
14 is => 'ro',
15 required => 1,
16);
17
18sub build_per_context_instance {
19 my ($self, $app) = @_;
20
21 Gitalist::Git::Repo->new(repo_dir => $self->repo_dir);
21336a02 22}
23
24__PACKAGE__->meta->make_immutable;
bddfb71e 25