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 55     55   1656617 use strict;
  55         345  
  55         1540  
4 55     55   265 use warnings FATAL => 'all';
  55         131  
  55         1828  
5              
6 55     55   13736 use parent 'Exporter';
  55         8467  
  55         264  
7              
8 55     55   23124 use Sport::Analytics::NHL::Config;
  55         199  
  55         15949  
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 = $PLAYOFF;
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             );
48              
49             our $MERGED_FILE = 'merged.storable';
50             our $NORMALIZED_FILE = 'normalized.storable';
51             our $NORMALIZED_JSON = 'normalized.json';
52             our $SUMMARIZED_FILE = 'SUMMARIZED';
53              
54             1;
55              
56             =head1 AUTHOR
57              
58             More Hockey Stats, C<< >>
59              
60             =head1 BUGS
61              
62             Please report any bugs or feature requests to C, or through
63             the web interface at L. I will be notified, and then you'll
64             automatically be notified of progress on your bug as I make changes.
65              
66              
67             =head1 SUPPORT
68              
69             You can find documentation for this module with the perldoc command.
70              
71             perldoc Sport::Analytics::NHL::LocalConfig
72              
73              
74             You can also look for information at:
75              
76             =over 4
77              
78             =item * RT: CPAN's request tracker (report bugs here)
79              
80             L
81              
82             =item * AnnoCPAN: Annotated CPAN documentation
83              
84             L
85              
86             =item * CPAN Ratings
87              
88             L
89              
90             =item * Search CPAN
91              
92             L
93              
94             =back
95