-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspeakeasy.rb
56 lines (48 loc) · 1.59 KB
/
speakeasy.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 Speakeasy < Formula
desc "The Speakeasy CLI for interacting with the Speakeasy Platform"
homepage "https://www.speakeasy.com"
version "1.501.1"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.501.1/speakeasy_darwin_amd64.zip"
sha256 "3a8237108d66c698b50a1ae7d78a613085c3bd945437dbc679d8422b480593ea"
def install
bin.install "speakeasy"
end
end
if Hardware::CPU.arm?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.501.1/speakeasy_darwin_arm64.zip"
sha256 "e29089dcb20c107f547edd617bc5086297e7cb3d793b9a397d564673a3458ad1"
def install
bin.install "speakeasy"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.501.1/speakeasy_linux_amd64.zip"
sha256 "ea080ca94e39c151a9ff2bb9cea4eb0334565c6e65b583486d4c8fe033b4afe6"
def install
bin.install "speakeasy"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.501.1/speakeasy_linux_arm64.zip"
sha256 "dc293c950f18932dba98e22063330dcd5b8d97dd1c1d489e46c57aa44db6781d"
def install
bin.install "speakeasy"
end
end
end
end
test do
system "#{bin}/speakeasy --version"
end
end