homebrew-core/Formula/heroku-toolbelt.rb
Alex Dunn 3382e438e8 heroku-toolbelt 3.37.0
Closes Homebrew/homebrew#39830.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-17 14:54:32 +01:00

21 lines
704 B
Ruby

class HerokuToolbelt < Formula
homepage "https://toolbelt.heroku.com/other"
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.37.0.tgz"
sha256 "26f28e0921eba6524e65b50ee21771759c27187b3673146cc6f22fa607513265"
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