File Coverage

blib/lib/Sport/Analytics/NHL/LocalConfig.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Sport::Analytics::NHL::LocalConfig;
2              
3 67     67   2471379 use strict;
  67         443  
  67         1949  
4 67     67   331 use warnings FATAL => 'all';
  67         140  
  67         2766  
5              
6 67     67   15893 use parent 'Exporter';
  67         10690  
  67         366  
7              
8 67     67   26331 use Sport::Analytics::NHL::Config;
  67         281  
  67         22340  
9              
10             =head1 NAME
11              
12             Sport::Analytics::NHL::LocalConfig - local configuration settings
13              
14             =head1 SYNOPSYS
15              
16             Local configuration settings
17              
18             Provides local settings such as the location of the Mongo DB or the data storage, and the current season/stage setting.
19              
20             This list shall expand as the release grows.
21              
22             use Sport::Analytics::NHL::LocalConfig;
23             print "The data is stored in $DATA_DIR\n";
24              
25             =cut
26              
27              
28             our $CURRENT_SEASON = 2018;
29             our $CURRENT_STAGE = $REGULAR;
30              
31             our $IS_AUTHOR = 0;
32              
33             # UNCOMMENT AND CONFIGURE FOR MONGO USAGE
34              
35             our $MONGO_DB = undef;
36             #our $MONGO_DB = 'hockeytest';
37             #our $MONGO_HOST = '127.0.0.1';
38             #our $MONGO_PORT = 27017;
39              
40             our $DATA_DIR = '/misc/nhl';
41              
42             our @EXPORT = qw(
43             $MONGO_DB $MONGO_HOST $MONGO_PORT
44             $CURRENT_SEASON $CURRENT_STAGE $DATA_DIR
45             $IS_AUTHOR
46             $MERGED_FILE $NORMALIZED_FILE $SUMMARIZED_FILE $NORMALIZED_JSON
47             $DEFAULT_PLAYERFILE_EXPIRATION
48             );
49              
50             our $MERGED_FILE = 'merged.storable';
51             our $NORMALIZED_FILE = 'normalized.storable';
52             our $NORMALIZED_JSON = 'normalized.json';
53             our $SUMMARIZED_FILE = 'SUMMARIZED';
54              
55             our $DEFAULT_PLAYERFILE_EXPIRATION = 57600;
56              
57             1;
58              
59             =head1 AUTHOR
60              
61             More Hockey Stats, C<< >>
62              
63             =head1 BUGS
64              
65             Please report any bugs or feature requests to C, or through
66             the web interface at L. I will be notified, and then you'll
67             automatically be notified of progress on your bug as I make changes.
68              
69              
70             =head1 SUPPORT
71              
72             You can find documentation for this module with the perldoc command.
73              
74             perldoc Sport::Analytics::NHL::LocalConfig
75              
76              
77             You can also look for information at:
78              
79             =over 4
80              
81             =item * RT: CPAN's request tracker (report bugs here)
82              
83             L
84              
85             =item * AnnoCPAN: Annotated CPAN documentation
86              
87             L
88              
89             =item * CPAN Ratings
90              
91             L
92              
93             =item * Search CPAN
94              
95             L
96              
97             =back
98