line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#======================================================================== |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Badger::Hub::Badger |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION |
6
|
|
|
|
|
|
|
# Custom Badger::Hub for accessing other Badger components. |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# AUTHOR |
9
|
|
|
|
|
|
|
# Andy Wardley |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
#======================================================================== |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
package Badger::Hub::Badger; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
9
|
use Badger::Debug ':dump'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
15
|
|
16
|
|
|
|
|
|
|
use Badger::Class |
17
|
1
|
|
|
|
|
6
|
version => 0.01, |
18
|
|
|
|
|
|
|
debug => 0, |
19
|
1
|
|
|
1
|
|
7
|
base => 'Badger::Hub'; |
|
1
|
|
|
|
|
2
|
|
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
6
|
use Badger::Config; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
109
|
|
22
|
|
|
|
|
|
|
our $CONFIG = 'Badger::Config'; |
23
|
|
|
|
|
|
|
our $COMPONENTS = { |
24
|
|
|
|
|
|
|
pod => 'Badger::Pod', |
25
|
|
|
|
|
|
|
codecs => 'Badger::Codecs', |
26
|
|
|
|
|
|
|
filesystem => 'Badger::Filesystem', |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
our $DELEGATES = { |
29
|
|
|
|
|
|
|
file => 'filesystem', # hub->file ==> hub->filesystem->file |
30
|
|
|
|
|
|
|
directory => 'filesystem', |
31
|
|
|
|
|
|
|
dir => 'filesystem', |
32
|
|
|
|
|
|
|
codec => 'codecs', |
33
|
|
|
|
|
|
|
pod => 'pod', |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |