The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RTDevSys::Cmd::Command::rt - Command to manage installations of RT.

EARLY VERSION WARNING

This is a very early version of RTDevSys. It is ready for use, and in fact is being used. However there may be some API changes in the future. As well there may be some missing, incomplete, or untested features. At the moment the database commands only support postgres not mysql.

DESCRIPTION

This class is a command used to install, uninstall, and patch RT.

SYNOPSIS

    $ rtdevsys rt --install
    $ rtdevsys rt --uninstall
    $ rtdevsys help rt

ATTRIBUTES

Attributes are flags that can be passed to the command line.

    $ rtdevsys rt --ATTRIBUTE
install

Install RT (implies --patch)

uninstall

Uninstall RT (implies --clean)

patch

Apply patches

unpatch

Unapply patches

test

Run the RT test suite

clean

Clean RT installation (implies --unpatch)

initdb

initialize the database

DEPLOYMENT TASKS

This command adds the following deployment tasks. Deployment tasks are run when the 'deploy' command is used.

rt

This does the following:

    uninstall rt
    make sure old patches are undone.
    patch rt installation files
    install rt
    unpatch rt installation files
    init the database (if requested)
config

This deployment task will move the RT_SiteConfig file RT installs by default to your custom config directory, unless a config file already exists there. It will then put a new RT_SiteConfig file in place that redirects to the custom one.

FUNCTIONS

site_config()

This function writes a RT_SiteConfig.pm file to the installation directory. The generated file will simply require the custom config file, and the plugins config file.

install_rt

This function will install RT to the RT installation directory as specified in the RTDSConfig file, or command line arguments.

uninstall_rt()

Uninstall RT (rm -rf INSTALL_DIR)

rt_initdb()

Run the initialize-database make rule from the RT source dir. WARNING: WILL DROP THE DATABASE FIRST

patch_rt()

Silently unpatches the RT installation source, then proceeds to patch it again.

unpatch_rt

Unpatch the RT installation source.

AUTHORS

Chad Granum <chad@opensourcery.com>

COPYRIGHT

Copyright 2009 OpenSourcery, LLC.

This file is part of RTDevSys

RTDevSys 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.

RTDevSys 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 RTDevSys. If not, see <http://www.gnu.org/licenses/>.