Fix config:current task

This commit is contained in:
Anton Medvedev 2017-05-14 22:13:22 +07:00
parent 5f2d07369d
commit d13dcc8029
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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')),