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.7.0/commandbox-bin-4.7.0.zip" sha256 "7dffd19691af86aa0d852521b7ed7ad77b7bff7a86a86ae248a0c65a5ab2ab71" bottle :unneeded depends_on :java => "1.8" resource "apidocs" do url "https://downloads.ortussolutions.com/ortussolutions/commandbox/4.7.0/commandbox-apidocs-4.7.0.zip" sha256 "a516770daab869da625aec5da2e22e0061109f7b8263f6583efd089dba8fda4c" 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