Removed execution flag from non-exe files
[Fumo.git] / lib / Fumo / Controller / Branch.pm
blobc24d8aa7d3ec7094504fba6eef54f38ba89d9e0f
1 package Fumo::Controller::Branch;
3 use strict;
4 use warnings;
5 use base 'Catalyst::Controller';
7 use Data::Dumper;
9 =head1 NAME
11 Fumo::Controller::Branch - Catalyst Controller
13 =head1 DESCRIPTION
15 Catalyst Controller representing a branch.
17 =head1 METHODS
19 =cut
21 =head2 branch_list
23 Lists the branches avalible to the user considering the
24 /project route so far.
26 =cut
28 sub branch_list : Chained('/project/project_instance')
29 PathPart('') Args(0) {
30 my ($self, $c) = @_;
32 $c->stash->{branches} = [
33 $c->model('Schema::Branch')->search( $c->stash->{search_stack} )
36 $c->stash->{template} = 'branch/branch_list.tt2';
39 =head2 branch_instance
41 Passes on the current branch name within the chain.
43 =cut
45 sub branch_instance : Chained('/project/project_instance')
46 PathPart('') CaptureArgs(1) {
47 my ($self, $c, $branch) = @_;
49 $c->stash->{search_stack}->{branch} = $branch;
52 =head1 AUTHOR
54 Phil Jackson, phil@shellarchive.co.uk
56 =head1 LICENSE
58 This library is free software, you can redistribute it and/or modify
59 it under the same terms as Perl itself.
61 =cut