-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatree.rb
40 lines (35 loc) · 1.12 KB
/
datree.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
29
30
31
32
33
34
35
36
37
38
39
40
# typed: false
# frozen_string_literal: true
class Datree < Formula
desc ""
homepage "https://datree.io/"
version "1.9.19"
if OS.mac? && Hardware::CPU.intel?
url "https://github.com/datreeio/datree/releases/download/1.9.19/datree-cli_1.9.19_Darwin_x86_64.zip"
sha256 ""
end
if OS.mac? && Hardware::CPU.arm?
url "https://github.com/datreeio/datree/releases/download/1.9.19/datree-cli_1.9.19_Darwin_arm64.zip"
sha256 ""
end
if OS.linux? && Hardware::CPU.intel?
url "https://github.com/datreeio/datree/releases/download/1.9.19/datree-cli_1.9.19_Linux_x86_64.zip"
sha256 ""
end
if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/datreeio/datree/releases/download/1.9.19/datree-cli_1.9.19_Linux_arm64.zip"
sha256 ""
end
def install
bin.install "datree"
end
def caveats
<<~EOS
\033[32m[V] Downloaded Datree
[V] Finished Installation
\033[35m Usage: $ datree test [k8s-file.yaml]
Using Helm? => https://github.com/datreeio/helm-datree
Using Kustomize? => https://hub.datree.io/kustomize-support
EOS
end
end