Manual work is a bug. so, have someone automate the crap out of your migrations (or w/e task you are drowning in) in script-form, and deliver it like superpowers to all your developers with a tool they already know how to use.
Brew has built in updateability.
Last active
November 3, 2024 09:28
-
-
Save jensim/3fc69962914f3734c8738c8163b118c4 to your computer and use it in GitHub Desktop.
private git repo homebrew tap template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tap it | |
brew tap jensim/demo ssh://[email protected]:2222/~jensim/homebrew-demo.git | |
# Install it | |
brew install jensim_demo_formula | |
# Run it | |
jensim_demo_formula |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Located in the Tap git repo | |
# ssh://[email protected]:2222/~jensim/homebrew-demo.git | |
# in the catalogue 'Fomula' | |
# And the file-name must match the ruby-class | |
# You can also have multiple Formula definitions in the same tap | |
class JensimDemoFormula < Formula | |
desc 'A demo formula' | |
homepage 'https://my.bitbucket.server.com/users/jensim/repos/demo-repo/browse' | |
head 'ssh://[email protected]:2200/~jensim/demo-repo.git', :using => :git | |
url 'ssh://[email protected]:2200/~jensim/demo-repo.git', :using => :git, :tag => '0.0.1' | |
version '0.0.1' | |
depends_on 'gnu-sed' | |
def install | |
bin.install 'script.sh' => 'jensim_demo_formula' | |
prefix.install 'files' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Located in the formula git-repo | |
# ssh://[email protected]:2200/~jensim/demo-repo.git | |
echo >&2 'Hello world' | |
# Do stuff... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment