08ea14fa7a
Closes #9895. Signed-off-by: William Woodruff <william@tuffbizz.com>
25 lines
627 B
Ruby
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.4.jar"
|
|
sha256 "fd628ae37adb08e87c1494ed0dffc24c9227a7bd3d0f9186de8211ef7a2f073c"
|
|
|
|
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
|