API-PleskExpand

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

    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,
    },
    create_makefile_pl => 'traditional',
);

$build->create_build_script;

Changes  view on Meta::CPAN

    - Fix errors in documentation
1.02 Jun 8 13:32:18 SAMST 2008
    - Full support all ways of choosing a Plesk server, where the client will be created (autoselect and manual)
1.03 Jun 14 12:16:24 SAMST 2008 
    - Fix documentation, add tests
1.04 Jun 22 05:21:18 SAMST 2008
    - Add ability to attaching domains and accounts to templates
1.05 Jul 29 23:33:12 SAMST 2008
    - New function -- get all domains from Expand
1.06 Jul 31 17:34:55 SAMST 2008
    - Fixed Build.pl ( Test::LongString not in prereqs_build  list but required )
    - Add URI.pm as required module
1.07 Sep 12 01:04:09 SAMST 2008
    - New function -- get all accounts from Expand
    - Fix function "get all domains from Expand" -- bug with one field answer

MANIFEST  view on Meta::CPAN

Build.PL
Changes
lib/API/PleskExpand.pm
lib/API/PleskExpand/Accounts.pm
lib/API/PleskExpand/Domains.pm
Makefile.PL
MANIFEST			This list of files
README
t/expand.t
t/TestData.pm
META.yml                                 Module meta-data (added by MakeMaker)

META.yml  view on Meta::CPAN

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
generated_by:       ExtUtils::MakeMaker version 6.46
meta-spec:
    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
    version:  1.4

Makefile.PL  view on Meta::CPAN

    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     => {}
);

README  view on Meta::CPAN

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

Copyright (C) 2008 by Odintsov Pavel.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.8 or,

t/TestData.pm  view on Meta::CPAN

package TestData;

use strict;
use warnings;

my $online_expand_url = 'https://your.true.host.ru:8442/webgate.php';

our %online_expand_valid_params = (
    api_version   => $ENV{'expand_api_version'}  || '2.2.4.1',
    username      => $ENV{'expand_username'}     || 'root',
    password      => $ENV{'expand_password'}     || 'qwerty',

t/expand.t  view on Meta::CPAN

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' );
    use_ok( 'API::Plesk::Response');
}


my $expand_client = API::PleskExpand->new( %TestData::online_expand_valid_params);
isa_ok( $expand_client, 'API::PleskExpand', 'STATIC call new' );

# Calling undefined method from Plesk.pm

{
    our $our_warning;
    local $SIG{__DIE__} = sub { $our_warning = shift; }; # confess <=> die
    eval { API::PleskExpand->new(%TestData::online_expand_valid_params)->aaa__bbbccc() };
    like($our_warning, qr/aaa__bbbccc/,
         'Checking AUTOLOAD by calling undefined method.');
}


my %create_account_data = (
    'select'        => 'optimal',
    'template-id'   =>  1,
    'general_info'  => {
        login   => 'suxdffffxx',

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.439 second using v1.00-cache-2.02-grep-82fe00e-cpan-585fae043c8 )