homebrew-core/Formula/digdag.rb

29 lines
817 B
Ruby

class Digdag < Formula
desc "Workload Automation System"
homepage "https://www.digdag.io/"
url "https://dl.digdag.io/digdag-0.10.2.jar"
sha256 "3d85c052cc4a6d6bf545e1a64b02f8ac3830bc1b7910d7f2d798c297cd4b1c41"
license "Apache-2.0"
livecheck do
url "https://github.com/treasure-data/digdag.git"
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "2c6e9bc3748a6451c0c3421574dc1feca389e41510f842b97c7bceb592762af8"
end
depends_on arch: :x86_64 # openjdk@8 is not supported on ARM
depends_on "openjdk@8"
def install
libexec.install "digdag-#{version}.jar"
bin.write_jar_script libexec/"digdag-#{version}.jar", "digdag", java_version: "1.8"
end
test do
assert_match version.to_s, shell_output("#{bin}/digdag --version")
end
end