Skip to content

Commit

Permalink
remove leadstore
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Jun 30, 2012
1 parent dadd463 commit 13d1254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions lib/CPAN/Testers/WWW/Statistics.pm
Expand Up @@ -59,7 +59,6 @@ keys.
directory => path to output directory directory => path to output directory
mainstore => path to main data storage file mainstore => path to main data storage file
leadstore => path to leaderboard data storage file
templates => path to templates directory templates => path to templates directory
address => path to address file address => path to address file
mailrc => path to 01mailrc.txt file mailrc => path to 01mailrc.txt file
Expand Down Expand Up @@ -134,7 +133,6 @@ sub new {
$self->known_s( 0 ); $self->known_s( 0 );


$self->mainstore( _defined_or( $hash{mainstore}, $cfg->val('MASTER','mainstore' ) )); $self->mainstore( _defined_or( $hash{mainstore}, $cfg->val('MASTER','mainstore' ) ));
$self->leadstore( _defined_or( $hash{leadstore}, $cfg->val('MASTER','leadstore' ) ));
$self->monthstore(_defined_or( $hash{monthstore}, $cfg->val('MASTER','monthstore'), 'cpanstats-%s.json' )); $self->monthstore(_defined_or( $hash{monthstore}, $cfg->val('MASTER','monthstore'), 'cpanstats-%s.json' ));
$self->templates( _defined_or( $hash{templates}, $cfg->val('MASTER','templates' ) )); $self->templates( _defined_or( $hash{templates}, $cfg->val('MASTER','templates' ) ));
$self->address( _defined_or( $hash{address}, $cfg->val('MASTER','address' ) )); $self->address( _defined_or( $hash{address}, $cfg->val('MASTER','address' ) ));
Expand All @@ -147,7 +145,6 @@ sub new {
$self->builder( _defined_or( $hash{builder}, $cfg->val('MASTER','builder' ) )); $self->builder( _defined_or( $hash{builder}, $cfg->val('MASTER','builder' ) ));


$self->_log("mainstore =".($self->mainstore || '')); $self->_log("mainstore =".($self->mainstore || ''));
$self->_log("leadstore =".($self->leadstore || ''));
$self->_log("monthstore=".($self->monthstore || '')); $self->_log("monthstore=".($self->monthstore || ''));
$self->_log("templates =".($self->templates || '')); $self->_log("templates =".($self->templates || ''));
$self->_log("address =".($self->address || '')); $self->_log("address =".($self->address || ''));
Expand Down Expand Up @@ -207,9 +204,9 @@ Method to manage the creation of all the statistics graphs.
=cut =cut


__PACKAGE__->mk_accessors( __PACKAGE__->mk_accessors(
qw( directory mainstore leadstore monthstore templates address qw( directory mainstore monthstore templates address builder missing
builder missing mailrc logfile logclean copyright noreports tocopy mailrc logfile logclean copyright noreports tocopy tolink osnames
tolink osnames known_t known_s )); known_t known_s ));


sub leaderboard { sub leaderboard {
my ($self,%options) = @_; my ($self,%options) = @_;
Expand Down
1 change: 0 additions & 1 deletion t/56writes.t
Expand Up @@ -40,7 +40,6 @@ use CTWS_Testing;
ok( my $obj = CTWS_Testing::getObj(), "got object" ); ok( my $obj = CTWS_Testing::getObj(), "got object" );
ok( CTWS_Testing::cleanDir($obj), 'directory removed' ); ok( CTWS_Testing::cleanDir($obj), 'directory removed' );
unlink($obj->mainstore) if(-f $obj->mainstore); unlink($obj->mainstore) if(-f $obj->mainstore);
unlink($obj->leadstore) if(-f $obj->leadstore);


my $rc; my $rc;
my @files; my @files;
Expand Down

0 comments on commit 13d1254

Please sign in to comment.