homebrew-core/Formula/commandbox.rb
Brad Wood ec60403095
commandbox 4.6.0
Closes #37483.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-02 13:37:30 +08:00

26 lines
912 B
Ruby

class Commandbox < Formula
desc "CFML embedded server, package manager, and app scaffolding tools"
homepage "https://www.ortussolutions.com/products/commandbox"
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/4.6.0/commandbox-bin-4.6.0.zip"
sha256 "135abf4dc4757226a24929536f209ae26e36c0bdc680429331c356761fc7dfcd"
bottle :unneeded
depends_on :java => "1.8"
resource "apidocs" do
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/4.6.0/commandbox-apidocs-4.6.0.zip"
sha256 "c97ca12447607d424345d2ff0eea0d41b14bec16e8e35dcd5c62905181e0c3c8"
end
def install
libexec.install "box"
(bin/"box").write_env_script libexec/"box", Language::Java.java_home_env("1.8")
doc.install resource("apidocs")
end
test do
system "#{bin}/box", "--commandbox_home=~/", "version"
system "#{bin}/box", "--commandbox_home=~/", "help"
end
end