geode 1.0.0-incubating.M2 (new formula)

Add formula for Apache Geode (incubating).  Apache Geode is an
in-memory data grid providing a database-like consistency model,
reliable transaction processing and a shared-nothing architecture
to maintain very low latency performance with high concurrency
processing.
This commit is contained in:
Anthony Baker 2016-04-23 07:25:54 -07:00 committed by Andrew Janke
parent 9e2c36c7db
commit bd061be774

28
Formula/geode.rb Normal file
View file

@ -0,0 +1,28 @@
class Geode < Formula
desc "In-memory Data Grid for fast transactional data processing"
homepage "https://geode.apache.org"
url "http://apache.org/dyn/closer.cgi?filename=incubator/geode/1.0.0-incubating.M2/apache-geode-1.0.0-incubating.M2.tar.gz&action=download"
version "1.0.0-incubating.M2"
sha256 "8447912c6d893008dd03917722d01abff4853861ce3f34c2bc95b60c51675cea"
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