Data-Downloader
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Data/Downloader/Config.pm view on Meta::CPAN
Data::Downloader::MetadataPivot->rebuild_pivot_view;
}
=item update
Update the config
=cut
sub update {
my $self = shift;
my %args = @_;
$args{update_ok} = 1;
$self->init(%args);
}
sub _p { defined($_[0]) ? "[$_[0]]" : '[undef]' };
sub _are_same {
my ($x,$y) = @_;
lib/Data/Downloader/Repository.pm view on Meta::CPAN
aggregate stats. Won't update the stats before a specified
interval has elapsed.
Parameters :
interval -- a Datetime::Duration object or "0" to force an update.
defaults to one hour.
=cut
sub update_stats {
my $self = shift;
my $args = validate(@_, { interval => 0 });
my $duration = $args->{duration};
if (!defined($duration)) {
$duration = DateTime::Duration->new(hours => 1);
}
$self->_initialize_stats; # only if necessary
return if $duration &&
$self->stat_info->last_stat_update &&
($self->stat_info->last_stat_update->add_duration($duration)) > DateTime->now();
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.447 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )