29 lines
768 B
Ruby
29 lines
768 B
Ruby
class Digdag < Formula
|
|
desc "Workload Automation System"
|
|
homepage "https://www.digdag.io/"
|
|
url "https://dl.digdag.io/digdag-0.10.3.jar"
|
|
sha256 "200911b6a35a3d8b40e25f028753fb9652aeb19dbd05b8f950dc35ff69547c34"
|
|
license "Apache-2.0"
|
|
|
|
livecheck do
|
|
url "https://github.com/treasure-data/digdag.git"
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, all: "ca2ef842dc4f5b70a20896b7ba3fbeb34d14537b5dfc081ebe3e4c7150c04e8f"
|
|
end
|
|
|
|
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
|