2015-02-20 17:48:40 +03:00
|
|
|
<?php
|
2016-01-11 14:00:45 +07:00
|
|
|
namespace Deployer;
|
2015-02-20 17:48:40 +03:00
|
|
|
|
2016-01-22 17:58:49 -05:00
|
|
|
require __DIR__ . '/../../recipe/common.php';
|
|
|
|
|
2015-02-20 17:48:40 +03:00
|
|
|
localServer('localhost');
|
|
|
|
localServer('server1');
|
|
|
|
localServer('server2');
|
2016-01-22 17:58:49 -05:00
|
|
|
localServer('server3')
|
|
|
|
->stage('production');
|
|
|
|
localServer('server4')
|
|
|
|
->stage('production');
|
2015-02-20 17:48:40 +03:00
|
|
|
|
2016-01-22 17:58:49 -05:00
|
|
|
task('test:hello', function () {
|
2015-02-20 17:48:40 +03:00
|
|
|
writeln('Hello world!');
|
|
|
|
});
|
2016-01-22 17:58:49 -05:00
|
|
|
|
2016-01-25 09:34:37 -05:00
|
|
|
task('test:onlyForStage', function () {
|
2016-01-22 17:58:49 -05:00
|
|
|
writeln('You should only see this for production');
|
|
|
|
})
|
2016-01-25 09:34:37 -05:00
|
|
|
->onlyForStage('production');
|
2016-01-22 17:58:49 -05:00
|
|
|
|
|
|
|
task('test', [
|
|
|
|
'test:hello',
|
2016-01-25 09:34:37 -05:00
|
|
|
'test:onlyForStage'
|
2016-01-22 17:58:49 -05:00
|
|
|
]);
|