Ярослав Коршак > MojoX-CPAN-Uploader > MojoX::CPAN::Uploader

Download:
MojoX-CPAN-Uploader-0.032.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.032   Source  

NAME ^

MojoX::CPAN::Uploader - Mojo way to upload on CPAN

SYNOPSIS ^

    use MojoX::CPAN::Uploader;
    my $up = MojoX::CPAN::Uploader->new;

    $up->auth('pause_username', 'pause_password');
    my $result = $up->upload('file.tar.gz', 'subdir_on_pause_server');

    print ref $result ? "Error: $result\n" : "File uploaded\n";

DESCRIPTION ^

This module uses power of Mojo::UserAgent to upload your files on CPAN.

METHODS ^

MojoX::Cpan::Uploader implements following methods:

auth

Set user creditionals for PAUSE server. Takes 2 parameters: username and password.

upload

Uploads file to CPAN server. Takes 2 parameters: filename and subdir on CPAN server (optional).

DEPENDENCIES ^

Mojolicious

AUTHOR ^

Yaroslav Korshak <yko@cpan.org>

LICENCE AND COPYRIGHT ^

Copyright (c) 2010-2011, Yaroslav Korshak <yko@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: