/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (hide annotations)
Mon Sep 3 19:52:59 2007 UTC (16 years, 8 months ago) by dpavlin
File size: 608 byte(s)
added bootstrap data
1 dpavlin 61 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/pliva',
24     branch_regex => '(/[^/]+/[^/]+)(/.*)$',
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