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');
}); |
Beta Was this translation helpful? Give feedback.
8 replies
-
Closing due to inactivity. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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=stage
What 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?
Beta Was this translation helpful? Give feedback.
All reactions