madalynn/plum

面向对象部署库

维护者

详细信息

github.com/aerialls/Plum

主页

源码

安装量: 10,135

依赖者: 1

建议者: 0

安全: 0

星标: 87

关注者: 10

分支: 6

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

This package is not auto-updated.

Last update: 2024-09-22 04:12:47 UTC


README

Build Status

面向对象部署库

安装和配置

Plum 不提供自动加载器,但遵循 PSR-0 规范。

$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');