Fix Property "seriesExecutor" does not exist. (#2062)

* Fix Property "seriesExecutor" does not exist.

* Return Task object in Task::select()

For chaining
This commit is contained in:
Robin Houtevelts 2020-05-20 07:36:08 +02:00 committed by GitHub
parent 14786f899d
commit b9c436ef36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -231,9 +231,14 @@ class Task
return $this;
}
/**
* @param string $selector
* @return Task
*/
public function select(string $selector)
{
$this->selector = Selector::parse($selector);
return $this;
}
/**

View File

@ -430,7 +430,7 @@ function invoke($task)
$hosts = [Context::get()->getHost()];
$tasks = Deployer::get()->scriptManager->getTasks($task, $hosts);
$executor = Deployer::get()->seriesExecutor;
$executor = Deployer::get()->executor;
$executor->run($tasks, $hosts);
}