25 lines
644 B
Ruby
25 lines
644 B
Ruby
class Digdag < Formula
|
|
desc "Workload Automation System"
|
|
homepage "https://github.com/treasure-data/digdag"
|
|
url "https://dl.digdag.io/digdag-0.8.4.jar"
|
|
sha256 "010831ab35d3b6ffbc2382158ba71678713f8eef546b6b3329585eb7ec92e2ac"
|
|
|
|
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
|