Google::Code::Upload - upload files to a Google Code project
version 0.006
use Google::Code::Upload; my $gc = Google::Code::Upload->new( project => 'myproject', username => 'mike', password => 'abc123', ); $gc->upload( file => 'README', summary => 'README for myproject', labels => ['Featured'], description => 'Hello world', );
It's an incomplete Perl port of https://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py
Basically you need googlecode_upload script instead.
Constructs a new Google::Code::Upload object. Takes the following key-value pairs:
Google::Code::Upload
Upload the given file to Google Code. Requires the following key-value pairs:
Featured
Type-Archive
OpSys-All
Returns the URL where the file can be downloaded if successful - otherwise, dies with the HTTP status line.
You can also export the upload function, if you don't want to use OO style. Instead of key-value pairs, specify the arguments in the following order:
upload
use Google::Code::Upload qw(upload); upload( $file, $project_name, $username, $password, $summary, $labels, $description );
You may optionally export upload to use this module in a non-OO manner.
The project homepage is http://metacpan.org/release/Dist-Zilla-PluginBundle-Author-DOHERTY/.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Dist::Zilla::PluginBundle::Author::DOHERTY/.
The development version is on github at http://github.com/doherty/Dist-Zilla-PluginBundle-Author-DOHERTY and may be cloned from git://github.com/doherty/Dist-Zilla-PluginBundle-Author-DOHERTY.git
You can make new bug reports, and view existing ones, through the web interface at https://github.com/doherty/Dist-Zilla-PluginBundle-Author-DOHERTY/issues.
Fayland Lam <fayland@gmail.com>
Mike Doherty <doherty@cpan.org>
This software is copyright (c) 2012 by Fayland Lam <fayland@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Google::Code::Upload, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Code::Upload
CPAN shell
perl -MCPAN -e shell install Google::Code::Upload
For more information on module installation, please visit the detailed CPAN module installation guide.