-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support Git and Github Shortcuts #78
Comments
Sorry I've not been more active on these topics - otherwise swamped. To DRY things out, maybe allow methods that set a global, and arbitrary, default
To really get flexible, the HTH |
Since Cheffile (and every specfile) is pure Ruby, there's no reason to support any special syntax for procs. Setting a local variable in one place (e.g., a common ref or a value based on an environment variable) and using it below is supported a priori because it's just Ruby, as is computing an expression inline. Overall, however, the spec declared by a specfile should typically be completely deterministic and should not change based on any such factors like environment variables. Computation in a specfile should typically be done for shortcuts, rather than for switching. The way git sources work now is that each fully-formed combination of |
Ack. It has been a while since I delved into the code so had forgotten that any Ruby is legitimate. All looks nice. |
Git Shortcuts
The shortcut for the
:ref
option can be the URI fragment.Github Shortcuts
Like Bundler's shortcuts.
Hedgehog
/cc @hedgehog
Aggregating the two above.
Path Option
This is an open question: should there be some shortcut for the
:path
option for the Git source? What would it look like?The text was updated successfully, but these errors were encountered: