my $url = $self->config->{url}; if ($url && ! ref($url) ) { $url = [ $url ]; } foreach my $u (@$url) { $self->add_request( Gungho::Request->new(GET => $u) ); } $self->next::method(@_); }
Gungho::Provider::Simple - An In-Memory, Simple Provider
use Gungho::Provider::Simple; my $g = Gungho::Provider::Simple->new; $g->add_request(Gungho::Request->new(GET => 'http://...'));
Creates a new instance.
Sets up the provider.
Adds a new request to the provider.
Returns the list of requests in the provider. The list is set to an empty list after the call, and has_requests is set to 0
To install Gungho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gungho
CPAN shell
perl -MCPAN -e shell install Gungho
For more information on module installation, please visit the detailed CPAN module installation guide.