-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Draft Roadmap: Cask DSL 2.0 #5592
Comments
What about this? variant localization('en'), architecture('x86') do
...
end Or optionally nested: variant localization('en') do
variant architecture('x86') do
...
end
end Idea stolen from http://soveran.github.io/cuba/ |
Nevermind, it does not add much clarity and forces us to put the matchers at the top level. |
@federicobond as syntax, your version reads much better. But yes, I was trying to avoid defining methods such as Here's a gist of a stupid rough draft in which |
This is a catch-all issue for the Cask DSL version 2.0
This is only a draft for discussion; not everything here will necessarily get implemented. Furthermore, DSL 2.0 is far enough in the future that we have no idea when we would start working on it.
variant
variant.localization('en') do ... end
variant.localization('en').hardware('x86') do ... end
) but nesting is probably clearer.localization
,hardware
,arch
(bitness),os_version
,java_version
References: #4688
The text was updated successfully, but these errors were encountered: