deployer/test/fixture/recipe.php
Anton Medvedev 6c6b1f8c9b Merge branch 'master' into 4.x
Conflicts:
	composer.lock
	recipe/common.php
2016-04-04 16:58:34 +07:00

27 lines
511 B
PHP

<?php
namespace Deployer;
require __DIR__ . '/../../recipe/common.php';
localServer('localhost');
localServer('server1');
localServer('server2');
localServer('server3')
->stage('production');
localServer('server4')
->stage('production');
task('test:hello', function () {
writeln('Hello world!');
});
task('test:onlyForStage', function () {
writeln('You should only see this for production');
})
->onlyForStage('production');
task('test', [
'test:hello',
'test:onlyForStage'
]);