homebrew-core/Formula/heroku-toolbelt.rb
Greg Buckner 38953ba756 heroku-toolbelt 3.37.1
Closes Homebrew/homebrew#39977.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-22 11:29:47 +01:00

21 lines
704 B
Ruby

class HerokuToolbelt < Formula
homepage "https://toolbelt.heroku.com/other"
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.37.1.tgz"
sha256 "a9d7ecface5363a945498b3d274533c4436c6f6529852939a0835620a415d420"
head "https://github.com/heroku/heroku.git"
depends_on :ruby => "1.9"
def install
libexec.install Dir["*"]
# turn off autoupdates (off by default in HEAD)
if build.stable?
inreplace libexec/"bin/heroku", "Heroku::Updater.inject_libpath", "Heroku::Updater.disable(\"Use `brew upgrade heroku-toolbelt` to update\")"
end
bin.write_exec_script libexec/"bin/heroku"
end
test do
system "#{bin}/heroku", "version"
end
end