Add user parameter

This commit is contained in:
Anton Medvedev 2017-08-16 11:46:05 +03:00
parent 60d149215f
commit 8d0fcfa16c
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,7 @@
- Added `deploy:info` task
- Added `writable_tty` option for `deploy:writable`
- Added `default_timeout` option [#1256]
- Added `user` parameter
### Changed
- Changed `branch` parameter and option behavior

View File

@ -35,6 +35,13 @@ set('hostname', function () {
return Context::get()->getHost()->getHostname();
});
set('user', function () {
try {
return runLocally('git config --get user.name');
} catch (\Throwable $exception) {
return 'no_user';
}
});
/**
* Configuration