1
0
mirror of https://github.com/deployphp/deployer.git synced 2025-02-23 00:32:25 +01:00

Update info.php

This commit is contained in:
Anton Medvedev 2022-03-03 22:20:50 +01:00 committed by GitHub
parent 41375c8b8c
commit 4ec52d645e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,11 +3,5 @@ namespace Deployer;
desc('Displays info about deployment');
task('deploy:info', function () {
$target = get('target');
try {
$target = runLocally("git rev-parse --abbrev-ref $target");
} catch (\Throwable $exception) {
// noop
}
info("deploying <fg=magenta;options=bold>$target</>");
info("deploying <fg=magenta;options=bold>{{target}}</>");
});