-
Notifications
You must be signed in to change notification settings - Fork 0
/
qbec.rb
51 lines (43 loc) · 1.61 KB
/
qbec.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
47
48
49
50
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Qbec < Formula
desc "Qbec (pronounced like the Canadian province) is a CLI tool that allows you to create Kubernetes objects on multiple Kubernetes clusters or namespaces configured correctly for the target environment in question."
homepage "https://qbec.io/"
version "0.15.2-4"
on_macos do
if Hardware::CPU.arm?
url "https://rogii-sre-dist-pub.s3.amazonaws.com/qbec/qbec-0.15.2-4-darwin-arm64.tar.gz"
sha256 "ce1f8ecf0bb8c0075c73195b9cb8728da6bc1e6856bbbcefb192a11c558482df"
def install
bin.install ["qbec", "jsonnet-qbec"]
end
end
if Hardware::CPU.intel?
url "https://rogii-sre-dist-pub.s3.amazonaws.com/qbec/qbec-0.15.2-4-darwin-amd64.tar.gz"
sha256 "474d53ce2f049f4e809aacc5d3bcc9707f9c7b34b881cedecf7ef31fd6c839f9"
def install
bin.install ["qbec", "jsonnet-qbec"]
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://rogii-sre-dist-pub.s3.amazonaws.com/qbec/qbec-0.15.2-4-linux-arm64.tar.gz"
sha256 "b214c89b91b9afd8eb7de995bcc00e521ba4d9a8fdf48344b644b4d637502d5b"
def install
bin.install ["qbec", "jsonnet-qbec"]
end
end
if Hardware::CPU.intel?
url "https://rogii-sre-dist-pub.s3.amazonaws.com/qbec/qbec-0.15.2-4-linux-amd64.tar.gz"
sha256 "5aaba468954b3165ebfe22fb148a5859a21292dbc5ed2ba097695ab788abfbb3"
def install
bin.install ["qbec", "jsonnet-qbec"]
end
end
end
test do
system "#{bin}/qbec version"
end
end