diff --git a/src/Task/Task.php b/src/Task/Task.php index 212f1ee5..e3eca963 100644 --- a/src/Task/Task.php +++ b/src/Task/Task.php @@ -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; } /** diff --git a/src/functions.php b/src/functions.php index 8b5e5b1c..e8160ba7 100644 --- a/src/functions.php +++ b/src/functions.php @@ -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); }