-
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.520.1"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.520.1/speakeasy_darwin_amd64.zip"
sha256 "b96adb61259a4e4bb0c379d32fa6a4063477891571ac84226166bc8fcfeed778"
def install
bin.install "speakeasy"
end
end
if Hardware::CPU.arm?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v1.520.1/speakeasy_darwin_arm64.zip"
sha256 "f2d426c1463a439b480dbc4ca431e453b90d53773103a2f4c3fcda3907baa606"
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.520.1/speakeasy_linux_amd64.zip"
sha256 "fb72a005e80ff4a5b3a4bf206f22ebcfc9363508d1d44529d5ee44a2d1bd4444"
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.520.1/speakeasy_linux_arm64.zip"
sha256 "a1003ef1114cedbd22455e2ddda9bd6701a0fb54f5859c864c4d33b3aa625bf4"
def install
bin.install "speakeasy"
end
end
end
end
test do
system "#{bin}/speakeasy --version"
end
end