NAME

Rexfile - Rex task configuration for CPANTesters backend scripts

SYNOPSIS

    # Deploy the latest backend scripts
    rex deploy

DESCRIPTION

This file defines all the Rex tasks used to deploy this application.

You must have already configured a user using the cpantesters-deploy repository, or been given an SSH key to use this Rexfile.

SEE ALSO

Rex

TASKS

deploy

    rex deploy
    rex -E vm deploy

Deploy the CPAN Testers backend from CPAN. Do this task after releasing a version of CPAN::Testers::Backend to CPAN.

deploy_dev

    rex -E vm deploy_dev

Deploy a pre-release, development version of the backend. Use this to install to your dev VM to test things. Will run `dzil build` locally to build the tarball, then sync that tarball to the remote and install using `cpanm`.

deploy_config

    rex -E vm deploy_config

Deploy the configuration for the backend, including Beam::Wire container files, crontab files, and user profile files.

disable

    rex -E vm disable

Disable the backend processes and cron entries to decommission a backend server.

SUBROUTINES

ensure_sudo_password

Ensure a sudo password is set. Use this at the start of any task that requires sudo.