line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::SiteConfig; |
2
|
2
|
|
|
2
|
|
1984
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
53
|
|
3
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
69
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
5
|
2
|
|
|
2
|
|
665
|
use Apache::SiteConfig::Statement; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Apache::SiteConfig::Section; |
7
|
|
|
|
|
|
|
use Apache::SiteConfig::Directive; |
8
|
|
|
|
|
|
|
use Apache::SiteConfig::Root; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Apache::SiteConfig - Apache site deployment tool |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use Apache::SiteConfig::Deploy; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
name 'projectA'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
su 'www-data'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
domain 'foo.com'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
domain_alias 'foo.com'; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
source git => 'git@git.foo.com:projectA.git', |
31
|
|
|
|
|
|
|
branch => 'master'; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
source hg => 'http://.........'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# relative web document path of repository |
36
|
|
|
|
|
|
|
webroot 'webroot/'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Do deploy |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$ perl siteA deploy |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Do update |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
$ perl siteA update |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Clean up |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
$ perl siteA clean |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 DESCRIPTION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Apache::SiteConfig is a simple tool for apache website deployment. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Yo-An Lin E<lt>cornelius.howl {at} gmail.comE<gt> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SEE ALSO |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
65
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |