-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbotkube.rb
56 lines (48 loc) · 1.69 KB
/
botkube.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
52
53
54
55
56
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Botkube < Formula
desc "Botkube CLI is a command line tool for managing Botkube resources"
homepage "https://botkube.io"
version "1.14.0"
license "MIT"
on_macos do
on_intel do
url "https://github.com/kubeshop/botkube/releases/download/v1.14.0/botkube-darwin-amd64", using: CurlDownloadStrategy
sha256 "5fcb8a8cebdc455014a0f95538efe791d7dc83e6b627da372c630acf00a1bd61"
def install
bin.install "botkube-darwin-amd64" => "botkube"
end
end
on_arm do
url "https://github.com/kubeshop/botkube/releases/download/v1.14.0/botkube-darwin-arm64", using: CurlDownloadStrategy
sha256 "fda2c9eb2b7311797556e3cf54a0fcef21fee99d8e1cba803406644b9c721463"
def install
bin.install "botkube-darwin-arm64" => "botkube"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/kubeshop/botkube/releases/download/v1.14.0/botkube-linux-amd64", using: CurlDownloadStrategy
sha256 "9195d0df15ddaed546079ba984b74d2df6f29f4710cfbb6e8ea2182070f8f427"
def install
bin.install "botkube-linux-amd64" => "botkube"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/kubeshop/botkube/releases/download/v1.14.0/botkube-linux-arm64", using: CurlDownloadStrategy
sha256 "3a20efdb14ddbed0e69228f2c7ca1f20e50a932c5a571417e4e72e2d75c66102"
def install
bin.install "botkube-linux-arm64" => "botkube"
end
end
end
end
test do
system "#{bin}/botkube version -o=short"
end
end