/[SVNBrowser]/trunk/lib/SVNBrowser/Bootstrap.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/lib/SVNBrowser/Bootstrap.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 68 - (show annotations)
Tue Sep 4 16:07:24 2007 UTC (16 years, 7 months ago) by dpavlin
File size: 613 byte(s)
fix initial data
1 use warnings;
2 use strict;
3
4 package SVNBrowser::Bootstrap;
5 use base qw(Jifty::Bootstrap);
6
7 =head1 Bootstrap application data
8
9 Create initial data
10
11 =cut
12
13 sub run {
14 my $self = shift;
15
16 $self->log->info("creating initial repository data");
17
18 my $system_user = SVNBrowser::CurrentUser->superuser( _bootstrap => 1 );
19
20 my $db = SVNBrowser::Model::Repository->new(current_user => $system_user);
21
22 $db->create(
23 uri => 'file:///home/dpavlin/.svk/bioserv',
24 branch_regex => '/upstream(/[^/]+)(/.*)$',
25 );
26
27 $db->create(
28 uri => 'file:///home/dpavlin/.svk/pliva',
29 branch_regex => '(/[^/]+/[^/]+)(/.*)$',
30 );
31 }
32
33 1;

  ViewVC Help
Powered by ViewVC 1.1.26