App-MtAws
view release on metacpan or search on metacpan
lib/App/MtAws.pm view on Meta::CPAN
# mt-aws-glacier - Amazon Glacier sync client
# Copyright (C) 2012-2014 Victor Efimov
# http://mt-aws.com (also http://vs-dev.com) vs@vs-dev.com
# License: GPLv3
#
# This file is part of "mt-aws-glacier"
#
# mt-aws-glacier 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.
#
# mt-aws-glacier 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
=head1 NAME
mt-aws-glacier - Perl Multithreaded Multipart sync to Amazon Glacier
=head1 SYNOPSIS
More info in README.md or L<https://github.com/vsespb/mt-aws-glacier> or L<http://mt-aws.com/>
=cut
package App::MtAws;
use strict;
use warnings;
use utf8;
use 5.008008; # minumum perl version is 5.8.8
our $VERSION = '1.120';
our $VERSION_MATURITY = "";
use constant ONE_MB => 1024*1024;
use App::MtAws::ParentWorker;
use App::MtAws::ChildWorker;
use App::MtAws::QueueJob::CreateVault;
use App::MtAws::QueueJob::DeleteVault;
use App::MtAws::QueueJob::RetrieveInventory;
use App::MtAws::QueueJob::FetchAndDownload;
use App::MtAws::QueueJob::Upload;
use File::Find ;
use File::Spec;
use App::MtAws::Journal;
use App::MtAws::ConfigDefinition;
use App::MtAws::ForkEngine qw/with_forks fork_engine/;
use Carp;
use IO::Handle;
use App::MtAws::Utils;
use App::MtAws::Exceptions;
use PerlIO::encoding;
sub check_module_versions
{
for (keys %INC) {
if (my ($mod) = /^App\/MtAws\/(.*)\.pmc?$/) {
$mod =~ s!/!::!g;
my $module = "App::MtAws::$mod";
my $got = $module->VERSION;
$got = 'undef' unless defined $got;
die "FATAL: wrong version of $module, expected $VERSION, found $got" unless $got eq $VERSION;
}
};
}
sub print_system_modules_version
{
for my $module (sort keys %INC) {
if ($module !~ /^App\/MtAws/ && $module =~ /\.pmc?/) {
my $name = $module;
$name =~ s[/][::]g;
( run in 0.975 second using v1.01-cache-2.11-cpan-39bf76dae61 )