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::Client 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 <ykorshak@gmail.com>

LICENCE AND COPYRIGHT

Copyright (c) 2010, Yaroslav Korshak <ykorshak@gmail.com>. 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.