Using select on invoke() #3554
Replies: 2 comments 8 replies
|
Well, invoke returns null. You can try: on(select('type=single,type=master'), function (Host $host) {
invoke('runon:master');
}); |
8 replies
|
Closing due to inactivity. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a task 'magento:publish' invoking different tasks which I want to run on different hosts:
I have an inventory with 3 nodes and labels as described:
The idea is to run the task 'runon:all' on all nodes, and 'runon:master' only on 'type: single' OR 'type:master'.
I run the command like that:
dep magento:publish env=stageWhat I've tried is to invoke the task using select:
invoke('runon:master')->select('type=single,type=master');The error received is:
Any idea how to achieve this?
All reactions