homebrew-core/Formula/digdag.rb
2017-02-20 12:25:02 +00: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.5.jar"
sha256 "766415b01f43aa65033b5f901c098b4d6fd9d4284195ca680867ceaf65d56db8"
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