class Grakn < Formula desc "The distributed hyper-relational database for knowledge engineering" homepage "https://grakn.ai" url "https://github.com/graknlabs/grakn/releases/download/1.5.4/grakn-core-all-mac-1.5.4.zip" sha256 "5dd4b278a2da8d91613acda1ad2d1a797cd190a21c40fb483db9cbcaa0b81876" bottle :unneeded depends_on :java => "1.8" def install libexec.install Dir["*"] bin.install libexec/"grakn" bin.env_script_all_files(libexec, Language::Java.java_home_env("1.8")) end test do assert_match /RUNNING/i, shell_output("#{bin}/grakn server status") end end