App::DistSync - Utility synchronization of the mirror distribution-sites
Version 1.04
use App::DistSync; my $ds = new App::DistSync( dir => "/var/www/www.example.com/dist", pid => $$, ); $ds->init or die ("Initialization error"); $ds->sync or die ("Sync error");
Utility synchronization of the mirror distribution-sites
my $ds = new App::DistSync( dir => "/var/www/www.example.com/dist", pid => $$, );
Returns the object
$ds->init or die ("Initialization error");
Initializing the mirror in the specified directory
$ds->sync or die ("Sync error");
Synchronization of the specified directory with the remote resources (mirrors)
my $status = fdelete( $file );
Deleting a file if it exists
my $struct = fetch( $URI_STRING, "path/to/file.txt", "/tmp/file.txt" );
Fetching file from remote resource by URI and filename. The result will be written to the specified file. For example: "/tmp/file.txt"
Function returns structure, contains:
{ status => 1, # Status. 0 - Errors; 1 - OK mtime => 123456789, # Last-Modified in ctime format or 0 in case of errors size => 123, # Content-length code => 200, # HTTP Status code };
my $status = touch( $file );
Makes files exist, with current timestamp. See original in "touch" in ExtUtils::Command
See CHANGES file
CHANGES
LWP
See TODO file
TODO
* none noted
perl, LWP, ExtUtils::Manifest
perl
Serz Minus (Lepenkov Sergey) http://www.serzik.com <minus@mail333.com>
Copyright (C) 1998-2014 D&D Corporation. All Rights Reserved
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See LICENSE file
LICENSE
To install App::DistSync, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::DistSync
CPAN shell
perl -MCPAN -e shell install App::DistSync
For more information on module installation, please visit the detailed CPAN module installation guide.