blob: 7ec0913317b1b201774bfc90b58a822f0cc569af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'formula'
class GitSsh < Formula
url 'https://github.com/lemarsu/git-ssh/tarball/v0.2.0'
sha1 '147d18d5a310f8cb0530155402cbd8ac66e7fa97'
homepage 'https://github.com/lemarsu/git-ssh'
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
end
|