mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
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:
parent
14786f899d
commit
b9c436ef36
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user