homebrew-core/Formula/jmxterm.rb
mattrussi c962118058 jmxterm: Add HEAD / Update homepage and url (#37496)
* jmxterm: Add HEAD / Update homepage and url

* Add HEAD build
* Homepage has been migrated from wiki.cyclopsgroup.com to docs.cyclopsgroup.com
* Releases are now sourced from GitHub

* Update jmxterm.rb
2019-03-22 10:49:06 +01:00

19 lines
649 B
Ruby

class Jmxterm < Formula
desc "Open source, command-line based interactive JMX client"
homepage "https://docs.cyclopsgroup.org/jmxterm"
url "https://github.com/jiaqi/jmxterm/releases/download/v1.0.0/jmxterm-1.0.0-uber.jar"
sha256 "c1f49b132c435ff5059f48aa560f07feb7a742a9db595ecae7fc34ca0aca054f"
bottle :unneeded
depends_on :java => "1.8"
def install
libexec.install "jmxterm-#{version}-uber.jar"
bin.write_jar_script libexec/"jmxterm-#{version}-uber.jar", "jmxterm", "", :java_version => "1.8"
end
test do
assert_match(/\"software\.name\".=.\"jmxterm\";/, shell_output("echo about | #{bin}/jmxterm -n"))
end
end