TaskPipe/Tool/Command__OpenProxies_FetchOpenProxies.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
execute_specific
2.0
BEGIN
2.0
CRAP 2.0
1 package TaskPipe::Tool::Command__OpenProxies_FetchOpenProxies;
2  
3 use Moose;
4 extends 'TaskPipe::Tool::Command__OpenProxies';
5  
6 sub execute_specific{
7 my ($self) = @_;
8  
9 $self->proxy_manager->fetch_proxies;
10 }
11  
12 __PACKAGE__->meta->make_immutable;
13  
14 =head1 NAME
15  
16 TaskPipe::Tool::Command__OpenProxies_FetchOpenProxies - command to fetch open proxies
17  
18 =head1 PURPOSE
19  
20 Fetch proxy lists for available proxies and update the database
21  
22 =head1 DESCRIPTION
23  
24 C<fetch open proxies> retrieves IPs from a set of proxy lists (specified in the C<TaskPipe::OpenProxyManager::Settings> section in the config.) Collected IPs are placed in the database.
25  
26 Each IP list has settings which can be found in the C<global> config file in sections which look like C<TaskPipe::OpenProxyManager::IPList_ListName::Settings> (with C<ListName> replaced with the name of the list.)
27  
28 The names of the lists to collect IPs from is specified in the C<ip_list_names> parameter in the C<TaskPipe::OpenProxyManager::Settings> config section.
29  
30 To run this as a background process, include the C<--shell=background> parameter on the command line, and to run it repeatedly (ie turn it into a daemon) also specify C<--iterate=repeat>.
31  
32 taskpipe fetch open proxies --shell=background --iterate=repeat
33  
34 =head1 AUTHOR
35  
36 Tom Gracey <tomgracey@gmail.com>
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 Copyright (c) Tom Gracey 2018
41  
42 TaskPipe is free software, licensed under
43  
44 The GNU Public License Version 3
45  
46 =cut
47  
48 1;