-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathkusion.rb
46 lines (39 loc) · 1.3 KB
/
kusion.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
46
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Kusion < Formula
desc "Codify and deliver intentions to Kubernetes and Clouds"
homepage "https://github.com/KusionStack/kusion"
version "0.13.0"
license "Apache License"
on_macos do
on_intel do
url "https://github.com/KusionStack/kusion/releases/download/v0.13.0/kusion_0.13.0_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "a90630fbbed12dc7229b6b91440b4728ec258057fe6fdee301d60f2f54689add"
def install
bin.install "kusion"
end
end
on_arm do
url "https://github.com/KusionStack/kusion/releases/download/v0.13.0/kusion_0.13.0_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "350aa8adae901c34388c57e9996950d24b1997b6cc167a8d1de56a4621c826e1"
def install
bin.install "kusion"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/KusionStack/kusion/releases/download/v0.13.0/kusion_0.13.0_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "d76de17d4a6d161dc2137cb063217d451e0e7f10ee86f35c5240b63e1720aaf0"
def install
bin.install "kusion"
end
end
end
end
test do
system "#{bin}/kusion version"
end
end