homebrew-core/Formula/nifi-registry.rb

29 lines
1021 B
Ruby

class NifiRegistry < Formula
desc "Centralized storage & management of NiFi/MiNiFi shared resources"
homepage "https://nifi.apache.org/registry"
url "https://www.apache.org/dyn/closer.lua?path=/nifi/1.19.0/nifi-registry-1.19.0-bin.zip"
mirror "https://archive.apache.org/dist/nifi/1.19.0/nifi-registry-1.19.0-bin.zip"
sha256 "e1273bc55c33faa80ccaf115631fc73a266313b79fc2a4f8279cc9d6f49f19bf"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, all: "ceadf3f7f7ebc8db4bfdd992e2da18fbce5ca12ad11ac0fb3f90aaee9c0cf5a1"
end
depends_on "openjdk"
def install
libexec.install Dir["*"]
rm Dir[libexec/"bin/*.bat"]
bin.install libexec/"bin/nifi-registry.sh" => "nifi-registry"
bin.env_script_all_files libexec/"bin/",
Language::Java.overridable_java_home_env.merge(NIFI_REGISTRY_HOME: libexec)
end
test do
output = shell_output("#{bin}/nifi-registry status")
assert_match "Apache NiFi Registry is not running", output
end
end