deployer/test/fixture/recipe.php
Anton Medvedev f9422e0f56 Merge branch 'master' into 4.x
# Conflicts:
#	src/functions.php
2016-08-04 21:58:46 +03:00

32 lines
618 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'
]);
task('test:hello', function () {
runLocally('echo "hello"');
writeln('Hello world!');
})->once();