mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
Add user parameter
This commit is contained in:
parent
60d149215f
commit
8d0fcfa16c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user