homebrew-core/Formula/heroku-toolbelt.rb
Alex Dunn 620ac17cfc heroku-toolbelt 3.39.1
Closes Homebrew/homebrew#41145.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-28 06:39:40 +01:00

22 lines
760 B
Ruby

class HerokuToolbelt < Formula
desc "Everything you need to get started with Heroku"
homepage "https://toolbelt.heroku.com/other"
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.39.1.tgz"
sha256 "1c83a171a9071c44eaa645a4a42b07d69cb4d2fafd99ba66d60084c98c6085e3"
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