-
Notifications
You must be signed in to change notification settings - Fork 0
/
zscaler-terraformer.rb
45 lines (36 loc) · 1.77 KB
/
zscaler-terraformer.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
41
42
43
44
45
class ZscalerTerraformer < Formula
desc "CLI tool to generate terraform files from existing ZPA and ZIA"
homepage "https://github.com/zscaler/zscaler-terraformer"
version "1.3.4"
if OS.mac? && Hardware::CPU.intel?
url "https://github.com/zscaler/zscaler-terraformer/releases/download/v#{version}/zscaler-terraformer_#{version}_darwin_amd64.zip"
sha256 "006dfa0835ab67fcfb0a93edfff4a7e3d9e225846b455fa4250b2b7d18a8402d"
end
if OS.mac? && Hardware::CPU.arm?
url "https://github.com/zscaler/zscaler-terraformer/releases/download/v#{version}/zscaler-terraformer_#{version}_darwin_arm64.zip"
sha256 "2f11be860c69bf1648f9acf377aa076c702ff9a764aae975df6c61eb3ef0238d"
end
if OS.linux? && Hardware::CPU.intel?
url "https://github.com/zscaler/zscaler-terraformer/releases/download/v#{version}/zscaler-terraformer_#{version}_linux_amd64.zip"
sha256 "513ef361555a150dc973dc7bd462a1bca62f2d4aed14052f0eff3c7265ab7c65"
end
if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/zscaler/zscaler-terraformer/releases/download/v#{version}/zscaler-terraformer_#{version}_linux_arm.zip"
sha256 "7d3142b6a6426b632ef40bf6ca9fe522ef408553c67b90f9d3603ca42773184c"
end
if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/zscaler/zscaler-terraformer/releases/download/v#{version}/zscaler-terraformer_#{version}_linux_arm64.zip"
sha256 "2ddb8ff7e687335df67a334525921d37351c0ffaf7741265f7349e779b37be2c"
end
conflicts_with "zscaler-terraformer"
livecheck do
url "https://github.com/zscaler/zscaler-terraformer/releases.atom"
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
def install
bin.install "zscaler-terraformer"
end
test do
system "#{bin}/zscaler-terraformer -h"
end
end