ffc6989a91
Closes Homebrew/homebrew#38982. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
21 lines
667 B
Ruby
21 lines
667 B
Ruby
class GitSsh < Formula
|
|
homepage "https://github.com/lemarsu/git-ssh"
|
|
url "https://github.com/lemarsu/git-ssh/archive/v0.2.0.tar.gz"
|
|
sha256 "f7cf45f71e1f3aa23ef47cbbc411855f60d15ee69992c9f57843024e241a842f"
|
|
|
|
def install
|
|
# Change loading of required code from libexec location (Cellar only)
|
|
inreplace "bin/git-ssh" do |s|
|
|
s.sub!(/path = .*$/, "path = '#{libexec}'")
|
|
end
|
|
# Install main script
|
|
bin.install "bin/git-ssh"
|
|
# Install required code into libexec location (Cellar only)
|
|
libexec.install Dir["lib/*"]
|
|
end
|
|
|
|
test do
|
|
assert_equal "#{bin}/git-ssh v#{version}",
|
|
shell_output("#{bin}/git-ssh -V").chomp
|
|
end
|
|
end
|