homebrew-core/Formula/apache-geode.rb
Anthony Baker 5490c47758 apache-geode 1.1.1
Closes #11937.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2017-04-01 11:52:19 -07:00

28 lines
986 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=geode/1.1.1/apache-geode-1.1.1.tar.gz"
sha256 "f540ba8d2b9dc80069e18314651deb890498af87d17dc5dbcd6ae47bf487b185"
bottle :unneeded
# Geode does not work with Java 1.9 (see https://issues.apache.org/jira/browse/GEODE-3)
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