Module::Release::FTP - Interact with an FTP server
NOTE: PAUSE has turned off FTP uploads. Methods in this class will croak. If you want to make a private PAUSE with FTP, you can adapt this manual.
Upload the file in local_file as remote_file to the FTP server. You can pass parameters to ftp_upload to change some of the behavior. Each parameter has a default value (see the default_* subs at the end of the module):
local_file
remote_file
Input key Default value ---------- ------------- upload_dir /incoming user anonymous password joe@example.com hostname pause.perl.org
Turn on passive FTP.
Turn off passive FTP.
Get the value of the passive FTP setting
The class name to use to create the FTP object. The class needs to follow the Net::FTP interface.
Net::FTP
Create and return the FTP object, based on the class name from ftp_class_name. IT connects to HOSTNAME, but does not login.
ftp_class_name
Override these methods to change the default values. Remember that the overridden methods have to show up in the Module::Release namespace.
Module::Release
pause.perl.org
anonymous
joe@example.com
/incoming
This source is in GitHub
https://github.com/briandfoy/module-release
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright © 2007-2017, brian d foy <bdfoy@cpan.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
To install Module::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Release
CPAN shell
perl -MCPAN -e shell install Module::Release
For more information on module installation, please visit the detailed CPAN module installation guide.