-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgotsrpc.rb
57 lines (49 loc) · 1.55 KB
/
gotsrpc.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
57
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Gotsrpc < Formula
desc "CLI utility to generate go and typescript RPC calls easily"
homepage "https://github.com/foomo/gotsrpc"
version "2.9.2"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/foomo/gotsrpc/releases/download/v2.9.2/gotsrpc_2.9.2_darwin_amd64.tar.gz"
sha256 "c69f94e391d35dee05b176ef452f03f8ea97d743d4ac176ad628f8fdb277d085"
def install
bin.install "gotsrpc"
end
end
if Hardware::CPU.arm?
url "https://github.com/foomo/gotsrpc/releases/download/v2.9.2/gotsrpc_2.9.2_darwin_arm64.tar.gz"
sha256 "3ab9c77268688d53b56b7eafa8581c5f989e5cbc516b2edd347d24f2ccc2ef4c"
def install
bin.install "gotsrpc"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gotsrpc/releases/download/v2.9.2/gotsrpc_2.9.2_linux_amd64.tar.gz"
sha256 "ae6744a8dcb63ed2c40f8f3e2b837321f41689d291c62f283df0096292998ce1"
def install
bin.install "gotsrpc"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gotsrpc/releases/download/v2.9.2/gotsrpc_2.9.2_linux_arm64.tar.gz"
sha256 "db72a6c408e91c2fc32e6463bd603408e7540313b74cde9f02e4ed2c809d54ad"
def install
bin.install "gotsrpc"
end
end
end
end
def caveats
<<~EOS
gotsrpc gotsrpc.yml
EOS
end
end