homebrew-core/Formula/maxwell.rb
Igor Kapkov 9523383dcd
maxwell 1.22.5
Closes #43966.

Signed-off-by: Igor Kapkov <igasgeek@me.com>
2019-09-07 15:31:39 +10:00

28 lines
774 B
Ruby

class Maxwell < Formula
desc "Maxwell's daemon, a mysql-to-json kafka producer"
homepage "https://maxwells-daemon.io/"
url "https://github.com/zendesk/maxwell/releases/download/v1.22.5/maxwell-1.22.5.tar.gz"
sha256 "038be2511f61a8074117e3b75fe23cf31fc29cfafa10c7ef243ba65c60b8ab6e"
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