fcc21eb590
Closes Homebrew/homebrew#42062. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
30 lines
1 KiB
Ruby
30 lines
1 KiB
Ruby
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.40.5.tgz"
|
|
sha256 "7aa72d5b49aa192403256126265717fc91226164dbc15bffcd54dd20ec46ce86"
|
|
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
|
|
|
|
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,
|
|
and other installation methods. See theforeman.org for more info.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/heroku", "version"
|
|
end
|
|
end
|