2012-10-16 03:07:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class HerokuToolbelt < Formula
|
|
|
|
homepage 'https://toolbelt.heroku.com/other'
|
2013-01-07 21:33:55 +00:00
|
|
|
url 'http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client-2.33.5.tgz'
|
|
|
|
sha1 'da42fd5c23b54bc5e8239e9b4b0beb8524dc4d5f'
|
2012-10-16 03:07:44 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
(bin/'heroku').write <<-EOS.undent
|
|
|
|
#!/usr/bin/env sh
|
2012-10-24 19:26:57 +00:00
|
|
|
exec "#{libexec}/bin/heroku" "$@"
|
2012-10-16 03:07:44 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/heroku", "version"
|
|
|
|
end
|
|
|
|
end
|