class Digdag < Formula desc "Workload Automation System" homepage "https://www.digdag.io/" url "https://dl.digdag.io/digdag-0.9.27.jar" sha256 "392b9b5343d25a3c16110bcb11677535e0b16d6faff03232407e4c975f7022a4" 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 #!/bin/bash exec /bin/bash "#{libexec}/digdag.jar" "$@" EOS end test do assert_match version.to_s, shell_output("#{bin}/digdag --version") end end