/
gotsrpc.rb
53 lines (45 loc) · 1.47 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
# 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.8.1"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.1/gotsrpc_2.8.1_darwin_arm64.tar.gz"
sha256 "ac0c8be84e83ce8ef53b664640a3cd20910413e4489d97a6165cf572148245aa"
def install
bin.install "gotsrpc"
end
end
if Hardware::CPU.intel?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.1/gotsrpc_2.8.1_darwin_amd64.tar.gz"
sha256 "528fb3354a66331ba8a12349a2368b41473ed963412bb492c94792b462e72282"
def install
bin.install "gotsrpc"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.1/gotsrpc_2.8.1_linux_arm64.tar.gz"
sha256 "527eccfc9c90a2e152f1767b45e3c094e1b02198628b657c49a40ba3cf69762b"
def install
bin.install "gotsrpc"
end
end
if Hardware::CPU.intel?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.1/gotsrpc_2.8.1_linux_amd64.tar.gz"
sha256 "9ebd7652ebb74ec814f0eb428860f11f1ae355d32e14c1ec0118af3cef4e7789"
def install
bin.install "gotsrpc"
end
end
end
def caveats
<<~EOS
gotsrpc gotsrpc.yml
EOS
end
end