Gitalist::Controller::Fragment::Repository


Gitalist documentation Contained in the Gitalist distribution.

Index


Code Index:

tags

The current list of tags in the repo.


Gitalist documentation Contained in the Gitalist distribution.

package Gitalist::Controller::Fragment::Repository;
use Moose;
use namespace::autoclean;

BEGIN { extends 'Gitalist::Controller' }
with qw/
    Gitalist::URIStructure::Repository
    Gitalist::URIStructure::Fragment::WithLog
/;

sub base : Chained('/fragment/base') PathPart('') CaptureArgs(0) {}

after heads => sub {
    my ($self, $c) = @_;
    $c->stash(
        heads => $c->stash->{Repository}->heads,
    );
};

after tags => sub {
  my ( $self, $c ) = @_;
  $c->stash(
    tags   => $c->stash->{Repository}->tags,
  );
};

__PACKAGE__->meta->make_immutable;