API-PleskExpand
view release on metacpan or search on metacpan
use warnings;
use Module::Build;
my $build = Module::Build->new(
module_name => 'API::PleskExpand',
license => 'perl',
dist_author => 'NRG <pavel.odintsov@googlemail.com>',
requires => {
'API::Plesk' => '1.06',
'Data::Dumper' => 0,
'LWP::UserAgent' => 0,
'Getopt::Long' => 0,
'HTTP::Request' => 0,
'Carp' => 0,
'URI' => 0,
},
build_requires => {
'Test::More' => 0,
'Test::LongString' => 0,
'URI' => 0,
abstract: API::PleskExpand - OOP interface to the Plesk Expand XML API
author:
- NRG <pavel.odintsov@googlemail.com>
license: perl
distribution_type: module
configure_requires:
ExtUtils::MakeMaker: 0
requires:
API::Plesk: 1.06
Carp: 0
Data::Dumper: 0
Getopt::Long: 0
HTTP::Request: 0
LWP::UserAgent: 0
Test::LongString: 0
Test::More: 0
URI: 0
no_index:
directory:
- t
- inc
Makefile.PL view on Meta::CPAN
WriteMakefile
(
NAME => 'API::PleskExpand',
AUTHOR => 'NRG <pavel.odintsov@googlemail.com>',
LICENSE => 'perl',
ABSTRACT => 'API::PleskExpand - OOP interface to the Plesk Expand XML API',
VERSION_FROM => 'lib/API/PleskExpand.pm',
PREREQ_PM => {
'API::Plesk' => '1.06', # parent module
'Carp' => '0',
'Data::Dumper' => '0',
'Getopt::Long' => '0',
'HTTP::Request' => '0',
'LWP::UserAgent' => '0',
'Test::More' => '0',
'Test::LongString' => '0',
'URI' => '0',
},
INSTALLDIRS => 'site',
EXE_FILES => [],
PL_FILES => {}
TESTS
make test
DEPENDENCIES
This module requires these other modules and libraries:
API::Plesk 1.04,
Carp (standard),
Data::Dumper,
Getopt::Long,
HTTP::Request,
LWP::UserAgent,
Test::More.
AUTHOR
Odintsov Pavel nrg[at]cpan.org
COPYRIGHT AND LICENCE
lib/API/PleskExpand.pm view on Meta::CPAN
#========================================================================
package API::PleskExpand;
use strict;
use warnings;
use lib qw(../..);
use API::Plesk;
use base 'API::Plesk';
use Data::Dumper;
use Carp;
our $VERSION = '1.07';
=head1 NAME
API::PleskExpand - OOP interface to the Plesk Expand XML API (http://www.parallels.com/en/products/plesk/expand/).
=head1 SYNOPSIS
lib/API/PleskExpand/Accounts.pm view on Meta::CPAN
# Pavel Odintsov (nrg) <pavel.odintsov@gmail.com>
#
#========================================================================
package API::PleskExpand::Accounts;
use strict;
use warnings;
use API::Plesk::Methods;
use Data::Dumper;
our $VERSION = '1.04';
=head1 NAME
API::PleskExpand::Accounts - extension module for the management Plesk user accounts from Plesk Expand.
=head1 SYNOPSIS
Directly not used, calls via API::PleskExpand.
lib/API/PleskExpand/Accounts.pm view on Meta::CPAN
'optimal' -- Least Integral Estimate (% used) selects the least loaded server (integrally estimated).
'min_domains' -- Least Domains (% used) registers a client on the server with the minimum number of domains.
'max_diskspace' -- Least Disk Space (% used) registers a client on the server with the minimum disk space used.
'' -- Select manually, Specify the target Plesk server by selecting its name from the list.
When choosing a 'manual' (select => '') option you should set server_id!
For 'optimal', 'min_domains', 'max_diskspace' you can ask additional server group id ('group_id' params) or server keyword ('server_keyword' param);
Return (Data::Dumper output):
VAR1 = bless( {
'answer_data' => [ {
'server_id' => '1',
'status' => 'ok',
'expiration' => '-1',
'tmpl_id' => '1',
'id' => '15'
} ],
'error_codes' => ''
lib/API/PleskExpand/Domains.pm view on Meta::CPAN
# Pavel Odintsov (nrg) <pavel.odintsov@gmail.com>
#
#========================================================================
package API::PleskExpand::Domains;
use strict;
use warnings;
use API::Plesk::Methods;
use Data::Dumper;
our $VERSION = '1.04';
=head1 NAME
API::PleskExpand::Domains - extension module to support operations with Plesk domains (only create) from Plesk Expand.
=head1 SYNOPSIS
Directly not used, calls via API::Plesk.
use strict;
use warnings;
use Carp;
use Test::More;
use Test::LongString;
use Data::Dumper;
use lib 't';
use TestData;
BEGIN {
plan tests => $ENV{online_stress_tests} ? 34 : 28;
use_ok( 'API::PleskExpand' );
use_ok( 'API::PleskExpand::Accounts' );
use_ok( 'API::PleskExpand::Domains' );
( run in 0.898 second using v1.01-cache-2.11-cpan-a5abf4f5562 )