homebrew-core/Formula/digdag.rb
2017-08-17 23:34:22 -07:00

25 lines
628 B
Ruby

class Digdag < Formula
desc "Workload Automation System"
homepage "https://www.digdag.io/"
url "https://dl.digdag.io/digdag-0.9.15.jar"
sha256 "69e9c6b8cfaa9b2f2fb62dfdbe609b4d33c281183e0e2b271a87c30430c12123"
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
ENV.java_cache
assert_match version.to_s, shell_output("#{bin}/digdag --version")
end
end