homebrew-core/Formula/cassandra-reaper.rb
2019-02-09 19:59:07 +01:00

29 lines
791 B
Ruby

class CassandraReaper < Formula
desc "Management interface for Cassandra"
homepage "http://cassandra-reaper.io"
url "https://github.com/thelastpickle/cassandra-reaper/releases/download/1.3.0/cassandra-reaper-1.3.0-release.tar.gz"
sha256 "79c190c51c3404c2efc7f7f1aafa7cfd91f2280cbb1fe719e668966836904efd"
bottle :unneeded
depends_on :java => "1.8"
def install
prefix.install "bin"
share.install "server/target" => "cassandra-reaper"
etc.install "resource" => "cassandra-reaper"
end
test do
begin
pid = fork do
exec "#{bin}/cassandra-reaper"
end
sleep 10
output = shell_output("curl -Im3 -o- http://localhost:8080/webui/")
assert_match /200 OK.*/m, output
ensure
Process.kill("KILL", pid)
end
end
end