Skip to content
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

Allow cask instance methods within blocks #2456

Merged
merged 1 commit into from Jan 18, 2014

Conversation

rolandwalker
Copy link
Contributor

Per #2449, a Cask author cannot invoke destination_path within an after_install block. It seems logical that if the after_install block is deferred until runtime, it should default to accessing instance methods, as this patch provides.

Ultimately, I'd like to add more DSL shortcuts into after_install as is proposed for caveats in #2426.

This patch covers after_install and after_uninstall. The caveats stanza is treated separately.

This covers after_install and after_uninstall.  The caveats
stanza is treated separately.
@phinze
Copy link
Contributor

phinze commented Jan 18, 2014

I agree that ultimately we should have a more explicit DSL for those blocks, and I like the approach you take in #2449, but I also agree that this is a good interim solution. 📥

phinze added a commit that referenced this pull request Jan 18, 2014
Allow cask instance methods within blocks
@phinze phinze merged commit bbc5bbe into Homebrew:master Jan 18, 2014
@rolandwalker rolandwalker deleted the instance_methods_in_blocks branch February 8, 2014 21:49
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants