-
Notifications
You must be signed in to change notification settings - Fork 0
/
botkube.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.13.0"
license "MIT"
on_macos do
on_intel do
url "https://github.com/kubeshop/botkube/releases/download/v1.13.0/botkube-darwin-amd64", using: CurlDownloadStrategy
sha256 "62838f72392fcce0028c7e1ef04fc4eceb4bc315540947bd6e3b67ca194404ec"
def install
bin.install "botkube-darwin-amd64" => "botkube"
end
end
on_arm do
url "https://github.com/kubeshop/botkube/releases/download/v1.13.0/botkube-darwin-arm64", using: CurlDownloadStrategy
sha256 "193c131f5cb0a3de8b84b15d0977b09aa980a3984764eb12752acc6133c535c1"
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.13.0/botkube-linux-amd64", using: CurlDownloadStrategy
sha256 "5f50c23d11893f2c501ad2d74f818d70c20c9006738089420032944f9af328a6"
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.13.0/botkube-linux-arm64", using: CurlDownloadStrategy
sha256 "6f927505dca9854dbda6722c7f91276d8612fe409ba2c970b75c361489ae3673"
def install
bin.install "botkube-linux-arm64" => "botkube"
end
end
end
end
test do
system "#{bin}/botkube version -o=short"
end
end