class Nifi < Formula desc "Easy to use, powerful, and reliable system to process and distribute data" homepage "https://nifi.apache.org" url "https://www.apache.org/dyn/closer.cgi\?path\=/nifi/1.9.2/nifi-1.9.2-bin.tar.gz" sha256 "8d50bd1a0408878ab41a5fcd18d179e5a293e7d0280ddbe5098a4627aaacbff1" bottle :unneeded depends_on :java => "1.8+" def install libexec.install Dir["*"] ENV["NIFI_HOME"] = libexec bin.install libexec/"bin/nifi.sh" => "nifi" bin.env_script_all_files libexec/"bin/", :NIFI_HOME => libexec end test do system bin/"nifi", "status" end end