mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Fix config:current task
This commit is contained in:
parent
5f2d07369d
commit
d13dcc8029
@ -9,6 +9,7 @@
|
||||
### Fixed
|
||||
- Fixed ssh multiplexing master connection initializing
|
||||
- Fixed `dep ssh` command [#1204]
|
||||
- Fixed `dep config:current` task
|
||||
|
||||
## v5.0.0-beta.3
|
||||
[v5.0.0-beta.2...v5.0.0-beta.3](https://github.com/deployphp/deployer/compare/v5.0.0-beta.2...v5.0.0-beta.3)
|
||||
|
@ -13,8 +13,9 @@ use Symfony\Component\Console\Helper\Table;
|
||||
desc('Show current paths');
|
||||
task('config:current', function () {
|
||||
$rows = [];
|
||||
$hosts = Deployer::get()->hostSelector->getHosts(input()->getArgument('stage'));
|
||||
|
||||
on(input()->getArgument('stage'), function (Host $host) use (&$rows) {
|
||||
on($hosts, function (Host $host) use (&$rows) {
|
||||
$rows[] = [
|
||||
$host->getHostname(),
|
||||
basename($host->getConfig()->get('current_path')),
|
||||
|
Loading…
x
Reference in New Issue
Block a user