homebrew-core/Formula/maxwell.rb
Shashwat Anand b573f62ebf maxwell 1.14.0
Closes #27099.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-04-25 23:03:08 +02:00

28 lines
773 B
Ruby

class Maxwell < Formula
desc "Maxwell's daemon, a mysql-to-json kafka producer"
homepage "http://maxwells-daemon.io/"
url "https://github.com/zendesk/maxwell/releases/download/v1.14.0/maxwell-1.14.0.tar.gz"
sha256 "afad538d14e5592284eb8f6a8750c9ec358c8b5d173a2673b09545828f6f2576"
bottle :unneeded
depends_on :java => "1.8"
def install
libexec.install Dir["*"]
%w[maxwell maxwell-bootstrap].each do |f|
bin.install libexec/"bin/#{f}"
end
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8"))
end
test do
fork do
exec "#{bin}/maxwell --log_level=OFF > #{testpath}/maxwell.log 2>/dev/null"
end
sleep 15
assert_match "Using kafka version", IO.read("#{testpath}/maxwell.log")
end
end