homebrew-core/Formula/digdag.rb
Michihito Shigemura 80563f542a digdag 0.9.34
Closes #37417.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-02-28 09:51:28 +01: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.34.jar"
sha256 "7d36427fa04fb88ba4ac6194d117a5c0a451e7ad36b02556915d009cd6c24de3"
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