homebrew-core/Formula/heroku-toolbelt.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

22 lines
577 B
Ruby

require 'formula'
class HerokuToolbelt < Formula
homepage 'https://toolbelt.heroku.com/other'
url 'http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client-3.3.0.tgz'
sha1 '5c4760414623b3e92bb0deaf5d49da695f8c7ad4'
def install
libexec.install Dir["*"]
bin.write_exec_script libexec/"bin/heroku"
end
test do
system "#{bin}/heroku", "version"
end
# Possibly temporary; see https://github.com/heroku/heroku/issues/1020
def caveats; <<-EOS.undent
heroku-toolbelt requires an installation of Ruby 1.9 or greater.
EOS
end
end