homebrew-core/Formula/heroku-toolbelt.rb
Jiashu Wang 0a401140a1 heroku-toolbelt 3.39.2
Closes Homebrew/homebrew#41346.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-04 12:01:39 +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.2.tgz"
sha256 "e3f820878fe0c21b20f3a0fb572c94ead903ba88d010439d1094170e3eb67b1e"
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