homebrew-core/Formula/commandbox.rb
Brad Wood 591276a3e9
commandbox 4.5.0
Closes #35405.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-12-24 16:05:44 +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.5.0/commandbox-bin-4.5.0.zip"
sha256 "26eb515fc41138f0d7b2503d6242c57fa4db9f6cfb6a5d0783a9974ec203813d"
bottle :unneeded
depends_on :java => "1.8"
resource "apidocs" do
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/4.5.0/commandbox-apidocs-4.5.0.zip"
sha256 "58632f302ccda65c1260fc2081eeacb7823e1b34d780c77697fc34dcca61d5ba"
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