The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Prove::Elasticsearch::Provisioner::Perl; - Provision perl on your SUT

VERSION

version 0.001

SUMMARY

The 'default' model for this whole framework is to test CPAN style modules. As such, provisioning here means using a different perl version to test the module in a CPANTesters style.

SUBROUTINES

get_available_provision_targets(current_version)

Returns a list of platforms it is possible to provision using this module. In our case, this means the available installed versions of perl.

Relies on perlbrew to work.

Filters out your current version if passed.

TODO Filter out perl versions inappropriate for your code automatically.

pick_platform(@platforms)

Pick out a platform from your list of platforms which can be provisioned. Returns the relevant platform, and an arrayref of platforms less the relevant one used.

can_switch_version(versioner)

Returns whether the version can be changed via this provisioner given we use a compatible versioner.

switch_version_to(version)

Switch to the desired version. Dies unless we can switch the SUT version, which is always in this case.

provision(desired,existing)

Do all the necessary actions needed to provision the SUT into the passed perl version.

Example:

    $provisioner::provision('Perl 5.006','Perl 5.004');

AUTHOR

George S. Baugh <teodesian@cpan.org>

SOURCE

The development version is on github at http://https://github.com/teodesian/App-Prove-Elasticsearch and may be cloned from git://https://github.com/teodesian/App-Prove-Elasticsearch.git

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by George S. Baugh.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.