homebrew-core/Formula/digdag.rb
Caleb Xu 1fcdb04fa3
digdag 0.9.33
Closes #37386.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-02-27 15:20:25 +08:00

24 lines
602 B
Ruby

class Digdag < Formula
desc "Workload Automation System"
homepage "https://www.digdag.io/"
url "https://dl.digdag.io/digdag-0.9.33.jar"
sha256 "a73fbc7dc945fe18f7d1530043558f9d8812cb0ff7b535bc0f182f77989061a6"
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