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.38.1.tgz" sha256 "b92a43d0568e9243684f33040af31982291dbd0ff61b5b840d7e989982dc2206" 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