1CPAN::Uploader(3) User Contributed Perl Documentation CPAN::Uploader(3)
2
3
4
6 CPAN::Uploader - upload things to the CPAN
7
9 version 0.103000
10
12 upload_file
13 CPAN::Uploader->upload_file($file, \%arg);
14
15 $uploader->upload_file($file);
16
17 Valid arguments are:
18
19 user - (required) your CPAN / PAUSE id
20 password - (required) your CPAN / PAUSE password
21 subdir - the directory (under your home directory) to upload to
22 http_proxy - uri of the http proxy to use
23 upload_uri - uri of the upload handler; usually the default (PAUSE) is right
24 debug - if set to true, spew lots more debugging output
25
26 This method attempts to actually upload the named file to the CPAN. It
27 will raise an exception on error.
28
29 new
30 my $uploader = CPAN::Uploader->new(\%arg);
31
32 This method returns a new uploader. You probably don't need to worry
33 about this method.
34
35 Valid arguments are the same as those to "upload_file".
36
37 read_config_file
38 my $config = CPAN::Uploader->read_config_file( $filename );
39
40 This reads the config file and returns a hashref of its contents that
41 can be used as configuration for CPAN::Uploader.
42
43 If no filename is given, it looks for .pause in the user's home
44 directory (from the env var "HOME", or the current directory if "HOME"
45 isn't set).
46
47 log
48 $uploader->log($message);
49
50 This method logs the given string. The default behavior is to print it
51 to the screen. The message should not end in a newline, as one will be
52 added as needed.
53
54 log_debug
55 This method behaves like "log", but only logs the message if the
56 CPAN::Uploader is in debug mode.
57
59 This code is mostly derived from "cpan-upload-http" by Brad
60 Fitzpatrick, which in turn was based on "cpan-upload" by Neil Bowers.
61 I (rjbs) didn't want to have to use a "system" call to run either of
62 those, so I refactored the code into this module.
63
65 Ricardo SIGNES <rjbs@cpan.org>
66
68 This software is copyright (c) 2011 by Ricardo SIGNES.
69
70 This is free software; you can redistribute it and/or modify it under
71 the same terms as the Perl 5 programming language system itself.
72
73
74
75perl v5.12.3 2011-04-08 CPAN::Uploader(3)