2010-03-13 22:49:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitSsh < Formula
|
2010-11-10 18:16:28 +00:00
|
|
|
url 'https://github.com/lemarsu/git-ssh/tarball/v0.2.0'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '147d18d5a310f8cb0530155402cbd8ac66e7fa97'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/lemarsu/git-ssh'
|
2010-03-13 22:49:11 +00:00
|
|
|
|
|
|
|
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
|