-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
denominator.rb
28 lines (23 loc) 路 989 Bytes
/
denominator.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Denominator < Formula
desc "Portable Java library for manipulating DNS clouds"
homepage "https://github.com/Netflix/denominator/tree/v4.7.1/cli"
url "https://search.maven.org/remotecontent?filepath=com/netflix/denominator/denominator-cli/4.7.1/denominator-cli-4.7.1-fat.jar"
sha256 "f2d09aaebb63ccb348dcba3a5cc3e94a42b0eae49e90ac0ec2b0a14adfbe5254"
license "Apache-2.0"
livecheck do
url "https://search.maven.org/remotecontent?filepath=com/netflix/denominator/denominator-cli/maven-metadata.xml"
regex(%r{<version>v?(\d+(?:\.\d+)+)</version>}i)
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, all: "865e74e14f10ef0b2b6e12ecf3b01f78cc35301da7d85c27d189cc84ec7cad1d"
end
depends_on "openjdk"
def install
(libexec/"bin").install "denominator-cli-#{version}-fat.jar"
bin.write_jar_script libexec/"bin/denominator-cli-#{version}-fat.jar", "denominator"
end
test do
system "#{bin}/denominator", "providers"
end
end