File Coverage

blib/lib/Hub/Config/Webapp.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Hub::Config::Webapp;
2 1     1   6 use strict;
  1         2  
  1         36  
3 1     1   5 use Hub qw/:lib/;
  1         1  
  1         8  
4             our $VERSION = '4.00043';
5             our @EXPORT = qw//;
6             our @EXPORT_OK = qw/CONF_WEBAPP/;
7              
8 1         95 use constant CONF_WEBAPP => {
9              
10             # Session files and user data is stored in this directory. The web server
11             # user account (apache) must have write privileges here.
12             'session' => {
13             'enable' => 1,
14             'directory' => '.sessions',
15             'timeout' => 3600,
16             },
17              
18             # Apache2 mod_perl2 PerlAuthenHandler
19             'authorization' => {
20             # Where are user accounts located?
21             'users' => '/users',
22             # To what do we compare the password?
23             'password_key' => 'password.sha1',
24             # Timeout in seconds
25             'timeout' => 600,
26             },
27              
28             # Content management
29             'cms' => {
30             # The website root directory. The web server user account (apache) must
31             # have write privileges here before either visitors or administrators are
32             # able to save data.
33             'root' => '/',
34             # Deny access to these directories
35             'deny' => [],
36             },
37              
38             # Source-code control
39             'scc' => {
40             'control_dir' => '.svn',
41             'enabled' => '1',
42             'command' => {
43             'remove' => 'svn remove --force [#file]',
44             'add' => 'svn add --force [#file]',
45             'commit' => 'svn commit [#file] -m "[#message]"',
46             'restore' => 'svn update [#file]',
47             'update' => 'svn update -r[#revision]',
48             'setignore' => 'svn propset svn:ignore "[#ignore]" "[#path]"',
49             'getignore' => 'svn propget svn:ignore "[#path]"',
50             },
51             },
52              
53 1     1   7 };
  1         2  
54              
55             1;