bef55dd642
Closes #6370. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
27 lines
828 B
Ruby
27 lines
828 B
Ruby
class Heroku < Formula
|
|
desc "Everything you need to get started with Heroku"
|
|
homepage "https://toolbelt.heroku.com/standalone"
|
|
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.43.13.tgz"
|
|
sha256 "1fb8f1ee1d11854d62fa1db618cd00de4f0edb2baac92d9c3441bdd6723096f1"
|
|
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` to update\")"
|
|
end
|
|
bin.write_exec_script libexec/"bin/heroku"
|
|
end
|
|
|
|
test do
|
|
system bin/"heroku", "version"
|
|
end
|
|
end
|