class Digdag < Formula desc "Workload Automation System" homepage "https://www.digdag.io/" url "https://dl.digdag.io/digdag-0.9.19.jar" sha256 "b8241b1be250aae9b32165c66734650d09e7348844971888cc3bca2839165dfe" bottle :unneeded depends_on :java => "1.8+" def install libexec.install "digdag-#{version}.jar" => "digdag.jar" # Create a wrapper script to support OS X 10.9. (bin/"digdag").write <<-EOS.undent #!/bin/bash exec /bin/bash "#{libexec}/digdag.jar" "$@" EOS end test do assert_match version.to_s, shell_output("#{bin}/digdag --version") end end