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-08-13 21:22:22 +00:00
|
|
|
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.41.3.tgz"
|
|
|
|
sha256 "7e2604bcecad5d3c003d47c4b5f064b1e6fc65e9dd15e39291b452a1be45fdb2"
|
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
|
|
|
|
|
2015-07-09 16:39:06 +00:00
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
Unlike the standalone download for Heroku Toolbelt, the Homebrew package
|
|
|
|
does not come with Foreman. It is available via RubyGems, direct download,
|
2015-07-30 15:53:02 +00:00
|
|
|
and other installation methods. See https://ddollar.github.io/foreman/ for more info.
|
2015-07-09 16:39:06 +00:00
|
|
|
EOS
|
|
|
|
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
|