homebrew-core/Formula/digdag.rb
2016-12-16 02:15:32 -08:00

25 lines
627 B
Ruby

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