homebrew-core/Formula/heroku-toolbelt.rb
dickeyxxx 87d5300c7f heroku-toolbelt 3.42.38
Closes Homebrew/homebrew#49584.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-27 09:59:04 +00:00

25 lines
811 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.42.38.tgz"
sha256 "fea1a6ad9c1fb2d1b2464d1c2acd637b61b638a1321da8638ccf5bb1b5f6b23f"
head "https://github.com/heroku/heroku.git"
bottle :unneeded
depends_on :arch => :x86_64
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