madalynn/plum

An object oriented deployer library

v1.2 2014-08-21 19:49 UTC

This package is not auto-updated.

Last update: 2024-04-21 01:48:59 UTC


README

Build Status

An object oriented deployer library

Installation and configuration

Plum does not provide and autoloader but follow the PSR-0 convention.

$plum = new \Plum\Plum();

// Add global options for all the servers
$plum->setOptions(array(
    'dry_run'     => true,
    'excludeFile' => __DIR__.'/exclude.txt'
));

// Register the rsync deployer
$plum->registerDeployer(new \Plum\Deployer\RsyncDeployer());

// Add your server
$plum->addServer('server_name', new \Plum\Server\Server('host', 'username', '/path/to/my/website'));

// Let's go!
$plum->deploy('bender', 'rsync');