class JbossForge < Formula desc "Tools to help set up and configure a project" homepage "https://forge.jboss.org/" url "https://downloads.jboss.org/forge/releases/3.5.0.Final/forge-distribution-3.5.0.Final-offline.zip" version "3.5.0.Final" sha256 "85c187e97c9d7eda1a540c07d15050ae5bc7c2c0edb1df93abf05279098bb997" bottle :unneeded def install rm_f Dir["bin/*.bat"] libexec.install %w[addons bin lib logging.properties] bin.install_symlink libexec/"bin/forge" end test do ENV["FORGE_OPTS"] = "-Duser.home=#{testpath}" assert_match "org.jboss.forge.addon:core", shell_output("#{bin}/forge --list") end end