NAME
CPAN::Uploader - upload things to the CPAN
VERSION
version 0.002
WARNING
This is really, really not well tested or used yet. Give it a few weeks, at
least. -- rjbs, 2008-06-06
ORIGIN
This code is mostly derived from cpan-upload-http
by Brad Fitzpatrick, which in turn was based on cpan-upload
by Neil Bowers. I (rjbs) didn't want to have to use a system
call to run either of those, so I refactored the code into this module.
METHODS
upload_file
CPAN::Uploader->upload_file($file);
$uploader->upload_file($file, \%arg);
Valid arguments are:
user - (required) your CPAN / PAUSE id
password - (required) your CPAN / PAUSE password
subdir - the directory (under your home directory) to upload to
debug - if set to true, spew lots more debugging output
This method attempts to actually upload the named file to the CPAN. It will raise an exception on error.
new
my $uploader = CPAN::Uploader->new(\%arg);
This method returns a new uploader. You probably don't need to worry about this method.
Valid arguments are the same as those to upload_file
.
log
$uploader->log($message);
This method logs the given message by printing it to the selected output handle.
debug
$uploader->debug($message);
This method logs the given message if the uploader is in debugging mode.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 132:
=cut found outside a pod block. Skipping to next block.
- Around line 134:
=cut found outside a pod block. Skipping to next block.
- Around line 136:
=cut found outside a pod block. Skipping to next block.