homebrew-core/Formula/apache-geode.rb
Anthony Baker 74ea2e7f29 apache-geode 1.0.0-incubating
Closes #6300.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-10-27 10:50:54 +02:00

28 lines
959 B
Ruby

class ApacheGeode < Formula
desc "In-memory Data Grid for fast transactional data processing"
homepage "https://geode.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=incubator/geode/1.0.0-incubating/apache-geode-1.0.0-incubating.tar.gz"
version "1.0.0-incubating"
sha256 "246a6edea4376c18a0f54de3d4b87efcddf9d27118ddc64a945e6a5014812232"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f "bin/gfsh.bat"
bash_completion.install "bin/gfsh-completion.bash" => "gfsh"
libexec.install Dir["*"]
(bin/"gfsh").write_env_script libexec/"bin/gfsh", Language::Java.java_home_env("1.8+")
end
test do
ENV.java_cache
begin
output = shell_output("#{bin}/gfsh start locator --dir #{testpath} --name=geode_locator_brew_test")
assert_match /Cluster configuration service is up and running/, output
ensure
quiet_system "pkill", "-9", "-f", "geode_locator_brew_test"
end
end
end