This website requires JavaScript.
Explore
Help
Sign In
dnrops
/
homebrew-cask
Watch
1
Star
0
Fork
You've already forked homebrew-cask
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a59d03a1e6
homebrew-cask
/
developer
/
bin
/
production_brew_cask
1 line
17 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Refactor {develop,production}_brew_cask Almost all of these two scripts are identical. Refactor out the common bits, saving over 60 lines of repetition. Right now this is handled by moving all the logic into "develop_brew_cask" and symlinking "production_brew_cask". This will be followed by another patch to add a "manage_brew_cask_links" command to do the same with sub-commands, e.g., manage_brew_cask_links status returns "production" or "develop", manage_brew_cask_links production does the same as production_brew_cask, manage_brew_cask_links develop does the same as develop_brew_cask, etc. At that point, I'd like to rename the script "manage_brew_cask_links" and have the two present names be symlinked to that. This was motivated by (besides DRY) getting tired of having to manually check symlinks to see which state I was currently in.
2014-09-15 04:48:13 +08:00
develop_brew_cask