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/3.5.0/commandbox-bin-3.5.0.zip" sha256 "9477d83616124833f3e95b9e47391c4e61cfe4197b7d02d2d83b92e85219702c" bottle :unneeded depends_on :java => "1.7+" resource "apidocs" do url "https://downloads.ortussolutions.com/ortussolutions/commandbox/3.5.0/commandbox-apidocs-3.5.0.zip" sha256 "32b86a55b89a58bb732a1630c290f99e6ae53e97eef808cf99b207a70cc0c1d9" end def install bin.install "box" doc.install resource("apidocs") end test do system "#{bin}/box", "--commandbox_home=~/", "version" system "#{bin}/box", "--commandbox_home=~/", "help" end end