homebrew-core/Formula/commandbox.rb
2018-10-03 08:40:52 +02: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.3.0/commandbox-bin-4.3.0.zip"
sha256 "ca39ddaa354c2914238b37fc6ca78cafb1e1cd247f5c5893b2782d250b169f1b"
bottle :unneeded
depends_on :java => "1.8"
resource "apidocs" do
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/4.3.0/commandbox-apidocs-4.3.0.zip"
sha256 "0c2325134cf2f0fc168e7cf0f44524f32ac7bfdd41a2b350ef912548f1751755"
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