homebrew-core/Formula/heroku-toolbelt.rb
Alex Dunn 822f1aae9f heroku-toolbelt 3.37.7
Closes Homebrew/homebrew#40637.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-13 05:54:53 +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.37.7.tgz"
sha256 "7557b38160530fbb4e4f03151e185fe1bf91ab5947754b8d70eafd0fcd7fb63d"
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