34a5845ff7
Closes #34703. Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
28 lines
773 B
Ruby
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.19.2/maxwell-1.19.2.tar.gz"
|
|
sha256 "eb8e2193f4a6cd1a12c9222f08e0283a6a31fc994b8cf231273a8709f849a745"
|
|
|
|
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
|