2012-10-16 03:07:44 +00:00
|
|
|
class HerokuToolbelt < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Everything you need to get started with Heroku"
|
2015-03-23 19:38:49 +00:00
|
|
|
homepage "https://toolbelt.heroku.com/other"
|
2015-07-04 06:59:44 +00:00
|
|
|
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.39.2.tgz"
|
|
|
|
sha256 "e3f820878fe0c21b20f3a0fb572c94ead903ba88d010439d1094170e3eb67b1e"
|
2015-04-02 13:45:13 +00:00
|
|
|
head "https://github.com/heroku/heroku.git"
|
2012-10-16 03:07:44 +00:00
|
|
|
|
2015-04-11 18:07:39 +00:00
|
|
|
depends_on :ruby => "1.9"
|
2015-04-09 00:24:18 +00:00
|
|
|
|
2012-10-16 03:07:44 +00:00
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2015-05-10 18:53:17 +00:00
|
|
|
# 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
|
2013-08-13 14:09:22 +00:00
|
|
|
bin.write_exec_script libexec/"bin/heroku"
|
2012-10-16 03:07:44 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-10-16 03:07:44 +00:00
|
|
|
system "#{bin}/heroku", "version"
|
|
|
|
end
|
|
|
|
end
|