8e238678be
Closes #880. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
25 lines
802 B
Ruby
25 lines
802 B
Ruby
class Heroku < 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.43.2.tgz"
|
|
sha256 "cc2e6e86a7c403ddc5645ca2e2e47c4ffb5526ba7a8359124b28fe7b5e5f57e9"
|
|
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
|