-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested "on" blocks should raise or warn #352
Comments
It was simply never considered, I'd prefer to see them not supported. It's not only about the intersection of roles/hosts, but the |
I see your points, but I think the crux of this issue is that the behavior of If we're able to change
If you still think it's not worth pursuing, let's just do warn / raise. |
Writing DSLs is hard. 😉 I think there is a possibility to make However, this would require a lot of code changes, and for the benefit of how many real-world use-cases? I'm not sure I see the cost-benefit equation working out. |
I've just been poking at Capistrano to try and develop a provisioning recipe to kick off the setup of a new server and I found that nesting on groups in exactly what I needed. Something like Here I would want to run the check:directories for example and it be limited to a subset of servers, however, since
Just wondering how fun it would be to try making this work with nested chain of scopes. |
From #348 (comment)
My personal opinion is that we should actually support it (take intersection of all role sets in the call stack), but until then, we should raise or warn when we find a nested
on
blocks.The text was updated successfully, but these errors were encountered: