2016-06-15 15:03:44 +00:00
|
|
|
class Digdag < Formula
|
|
|
|
desc "Workload Automation System"
|
|
|
|
homepage "https://github.com/treasure-data/digdag"
|
2016-10-15 10:11:52 +00:00
|
|
|
url "https://dl.digdag.io/digdag-0.8.17.jar"
|
|
|
|
sha256 "30a474247ee5b8efa6d2002f12cbf24e6089bf593eac946161c8496c167bcda7"
|
2016-06-15 15:03:44 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :java => "1.8+"
|
2016-06-15 15:03:44 +00:00
|
|
|
|
|
|
|
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
|